Reputation: 51255
How can I check whether an OpenGL context runs on a Geforce card? I need to run differnt code depending on whether it is running on a Geforce card, Quadro or AMD card and need a way to detect this.
Upvotes: 2
Views: 221
Reputation: 4096
I think this solution may be suitable
http://www.opengl.org/sdk/docs/man/xhtml/glGetString.xml
You can use this to return the vender and version. Im not sure if each card is explicitly different with OpenGL or if a certain version by each vender is all you will need
Upvotes: 1