PDA

View Full Version : Obtain vendor?



capedica
10-02-2005, 11:02 PM
Hi,
someone knows the speedest way to obtain the video card vendor? i need to know in my program if i'm running it on nvidia or ati card...
Thank you

dorbie
10-03-2005, 09:44 AM
GLubyte *vendor_name;

vendor_name = glGetString(GL_VENDOR);

Then do a strstr on the vendor string.

dorbie
10-03-2005, 09:49 AM
You're not gonna fix your lighting bug like this are you?

capedica
10-04-2005, 01:29 AM
sorry, but for now in this way it functions, i don't know if it's for my fault, i'll look the problem next days...