PDA

View Full Version : Extensions (only known way to use OpenGL > 1.1)



eror
03-28-2004, 11:36 AM
Hi.

I've got a question. What would happen, if I used nVidia (for example) extension in program, and run it on machine with ATI accelerator?

There would be an error, or maybe it would be handled in software way?

Bob
03-28-2004, 12:55 PM
You just wouldn't get the function pointers from wglGetProcAddress. What happens depends on how your code handles the situation. For example, if your code blindly assumes a certain extension is present and just use the function pointer without checking if it really is, your program will most certainly crach horribly when calling the function.