To know if you use hardware or generic renderer in OpenGL

来源:互联网 发布:linux 测试apache 编辑:程序博客网 时间:2024/04/28 10:48

If you put this code in your init routine, you'll be able to know what you're really using in OpenGL

char *r = (char *)glGetString(GL_RENDERER);
char *v = (char *)glGetString(GL_VENDOR);
char *ver = (char *)glGetString(GL_VERSION);
char *ext = (char*)glGetString(GL_EXTENSIONS);

Then you run in debug mode and put a break point in front of the first line. A few step latter, you'll be able to know if you use hardware or generic renderer.

 

http://www.opengl.org/discussion_boards/cgi_directory/ultimatebb.cgi?ubb=get_topic;f=2;t=000451