Original Post
Hey, im having trouble trying to get a simple quad to resize when i resize the window, ive got it working but it works when afaik it shouldn't work... glViewport(0, 0, width, height); glMatrixMode( GL_PROJECTION ); glLoadIdentity(); gluOrtho2D( 0, width, 0, height ); glMatrixMode( GL_MODELVIEW ); glLoadIdentity(); The code above doesnt work... BUT this does... glViewport(0, 0, width, height); gluOrtho2D( 0, width, 0, height ); glMatrixMode( GL_MODELVIEW ); glLoadIdentity(); Im sure im ment to select the GL_PROJECTION matrix stack before calling gluOrtho2D? Explanations please? Thanks:)