OpenGL window isn't opening

前端 未结 2 1227
渐次进展
渐次进展 2021-01-24 13:37

I have code from the OpenGLBook (openglbook.com) which compiles, but does not load. I have absolutely no idea why it\'s not loading. The code is as follows:

main

2条回答
  •  北荒
    北荒 (楼主)
    2021-01-24 14:31

    glutInitContextVersion(4, 2);
    

    Does your current graphics driver actually support OpenGL 4.2? If not, then your window creation will fail. 4.2 is still rather new; try 4.1 instead.

提交回复
热议问题