Obtain vendor?

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

GLubyte *vendor_name;

vendor_name = glGetString(GL_VENDOR);

Then do a strstr on the vendor string.

You’re not gonna fix your lighting bug like this are you?

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…