From: Ben S. <bs...@vr...> - 2002-03-29 02:36:38
|
ok, found it! :) you're calling glEnable(GL_DEPTH_TEST) BEFORE the call to glutCreateWindow(). thus OpenGL hasn't been initialized yet. moving the setting to after glutCreateWindow fixe the call over here. i'm attaching the modified code. just an fyi to show you how nice glut is ... i did the debugging on linux and the only problem i had was that #include <gl/gl.h> should be #include <GL/gl.h> once i fixed that ... you app ran perfectly, if a little fast. ^_^ ----- Ben Scott President ISU Game Developers Club Treasurer ISU Ballroom Dance Company bs...@ia... On Thu, 28 Mar 2002, Lou Herard wrote: > Here is my problematic code. The depth testing just doesn't work. Put it into a win console app project if you want to test it. > > - Lou > |