opengl redbook Fatal Error in XXXXXX pixel format with necessary capabilities not found

随便运行书中的一个程序aaindex.c时出现了下面的错误:
pixel format with necessary capabilities not found

解决方法:

http://www.educity.cn/wenda/519354.html

http://blog.csdn.net/cyningsun/article/details/7013744

http://blog.csdn.net/lj695242104/article/details/14162183

 

最终将  glutInitDisplayMode (GLUT_SINGLE | GLUT_INDEX)改成  glutInitDisplayMode (GLUT_SINGLE | GLUT_RGB);运行成功,但是是白色的。

具体原因不知。

posted @ 2015-02-04 20:17  aminxu  阅读(327)  评论(0编辑  收藏  举报