X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=scene.c;h=c322eb85def36ae01a81500e40bff77fae8cb5d8;hb=916773443101d71d573d82c5e699a1c94b9cb2e4;hp=d4c09fdecb470b8e0a6e61148ad9b6a11c089616;hpb=0fc3aef34b8228c1b1c7614588210f662d0420ab;p=atyndall%2Fcits2231.git diff --git a/scene.c b/scene.c index d4c09fd..c322eb8 100644 --- a/scene.c +++ b/scene.c @@ -184,15 +184,6 @@ void makeMenu() { */ void windowReshape(int w, int h) { glViewport(0, 0, (GLsizei) w, (GLsizei) h); - glMatrixMode(GL_PROJECTION); - glLoadIdentity(); - if (w <= h) - glFrustum(-near, far, -near*(GLfloat) h / (GLfloat) w, - far*(GLfloat) h / (GLfloat) w, nearClip, farClip); - else - glFrustum(-near*(GLfloat) w / (GLfloat) h, - far*(GLfloat) w / (GLfloat) h, near, far, nearClip, farClip); - glMatrixMode(GL_MODELVIEW); } /**