problem resizing viewport

Here’s the problem: I’m implementing an OpenGL view running on Win2K. It works great except that the OpenGL viewport will only go up to a certain size, about height=350, width=500. Beyond this size, the background color still fills the window’s client area, but the objects in the scene are clipped to this max size on the bottom and right.

The code does standard stuff in the OnSize event, i.e. it calls glViewport(0,0,x,y) with the window size params. Also it calls glFrustum to set a field of view of 45 degrees and an aspect ratio equal to that of the window.

Anyone seen this problem before? Any tips appreciated. Thanks!


I’m using Win2k. Send me the code and I’ll tell you if that works. Ok ?

Leyder Dylan
Site : http://slug-production.ibelgique.col
E-Mail :


Originally posted by Coconut:

That’s the problem!! Thanks!