PDA

View Full Version : my first program is a crash



glkid
06-03-2008, 11:16 PM
I am new to opengl programming and my first program keeps crashing here -
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
I have already created a context and made it current.
Commenting this line creates another crash in glFlush().

Please help..

Zengar
06-04-2008, 12:42 AM
Was your context creation successful? Soudns like you don't have a valid context to me...

Mark Shaxted
06-04-2008, 03:49 AM
try http://nehe.gamedev.net - many excellent tutorials there.

glkid
06-04-2008, 07:59 AM
Well, wglMakeCurrent() had returned a TRUE. So, I don't think the contexts are invalid.