Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement DefaultAllocator for POSIX, minor compilation fixes #816

Merged
merged 1 commit into from
Apr 21, 2016

Conversation

MAnyKey
Copy link
Contributor

@MAnyKey MAnyKey commented Apr 20, 2016

No description provided.

@@ -98,7 +98,7 @@ void Frustum::computePerspective(const Vec3& position,
Vec3 corner2 = far_center + x * far_width + y * far_height;

float size = (corner1 - corner2).length();
size = Math::maximum(sqrt(far_width * far_width * 4 + far_height * far_height * 4), size);
size = Math::maximum(std::sqrt(far_width * far_width * 4 + far_height * far_height * 4), size);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

without std sqrt is a C function which takes and returns double. Math::maximum takes arguments of equal types.
Besides I think sqrt should compute in floats since all computations here do that.

@nem0
Copy link
Owner

nem0 commented Apr 20, 2016

Seems OK, I will merge it once the AppVeyor build is finished (and after I wake up in 8 hours)

@nem0 nem0 merged commit 0d20f8b into nem0:master Apr 21, 2016
@nem0
Copy link
Owner

nem0 commented Apr 21, 2016

#655

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants