• Create Account

### #Actualsjaakiejj

Posted 04 March 2012 - 08:33 PM

glutInitDisplayMode(GL_DOUBLE | GL_RGBA);


Should be
glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGBA);


Easy to identify on Linux (You get an X error if the window parameters are incorrect), though based on your error log I suppose it's not quite as easy on windows, where it just crashes because of invalid window parameters (without actually telling you why).

Edit:
Just for future reference, it's easy to remember which enumerations go where in OpenGL. If the function starts with "glut", then the parameters should always be "GLUT_", where as functions that start on "gl" should always have parameters starting with "GL_". They're two different libraries, though since GLUT complements OpenGL it's easy to get confused if you don't pay attention to this detail

### #3sjaakiejj

Posted 04 March 2012 - 08:33 PM

glutInitDisplayMode(GL_DOUBLE | GL_RGBA);


Should be
glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGBA);


Easy to identify on Linux (You get an X error if the window parameters are incorrect), though based on your error log I suppose it's not quite as easy on windows.

Edit:
Just for future reference, it's easy to remember which enumerations go where in OpenGL. If the function starts with "glut", then the parameters should always be "GLUT_", where as functions that start on "gl" should always have parameters starting with "GL_". They're two different libraries, though since GLUT complements OpenGL it's easy to get confused if you don't pay attention to this detail

### #2sjaakiejj

Posted 04 March 2012 - 08:29 PM

glutInitDisplayMode(GL_DOUBLE | GL_RGBA);


Should be
glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGBA);


Easy to identify on Linux (You get an X error if the window parameters are incorrect), though based on your error log I suppose it's not quite as easy on windows.

### #1sjaakiejj

Posted 04 March 2012 - 08:28 PM

glutInitDisplayMode(GL_DOUBLE | GL_RGBA);

glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGBA);