aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortaw27 <taw27@84d2e878-0bd5-11dd-ad15-13eda11d74c5>2008-05-15 20:23:48 +0000
committertaw27 <taw27@84d2e878-0bd5-11dd-ad15-13eda11d74c5>2008-05-15 20:23:48 +0000
commit789361fb972673d5c1ecca77c4ffb5242ecd493f (patch)
treeefdf84b75a320f3ed9a5ff40b8b4d6b19410843a /src
parentb69ef8b8c82a9abbfcc52e0275f1ec58274a5d7f (diff)
Fix aspect ratio division arithmetic problem
git-svn-id: svn://cook.msm.cam.ac.uk:745/thrust3d/thrust3d@15 84d2e878-0bd5-11dd-ad15-13eda11d74c5
Diffstat (limited to 'src')
-rw-r--r--src/render.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render.c b/src/render.c
index a74f80e..ed28be2 100644
--- a/src/render.c
+++ b/src/render.c
@@ -91,7 +91,7 @@ RenderContext *render_setup(width, height) {
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
- gluPerspective(50.0, width/height, 0.1, 100.0); /* Depth buffer 10cm to 100m */
+ gluPerspective(50.0, (GLfloat)width/(GLfloat)height, 0.1, 100.0); /* Depth buffer 10cm to 100m */
glEnable(GL_COLOR_MATERIAL);
glColorMaterial(GL_FRONT, GL_AMBIENT_AND_DIFFUSE);