PDA

View Full Version : I get no valid GL context in glut (BCB)



MZ
11-23-2002, 07:10 PM
I use Borland C++ Builder 6


glutInit(&argc, argv);
glutInitDisplayMode(GLUT_RGBA | GLUT_DEPTH | GLUT_STENCIL | GLUT_DOUBLE);
glutInitWindowSize(600, 400);
glutCreateWindow(" http://www.opengl.org/discussion_boards/ubb/frown.gif ");
after above code i get this:
wglGetCurrenContext() returns NULL.
glGetString(GL_RENDERER) returns NULL.
No window appears.
glutReportErrors() prints nothing.
http://www.opengl.org/discussion_boards/ubb/frown.gif




[This message has been edited by MZ (edited 11-23-2002).]