glBlendColor null function pointer

Started by cbarrett1974, February 17, 2004, 20:58:14

Previous topic - Next topic

cbarrett1974

Hello.  
I have come across an access violation crash when calling the glBlendColor function.  

I'm running on Windows with a Radeon 9800, using the latest CVS code.
Unless I am using GL extensions incorrectly (and I'm not entirely sure how they work), I think it's something in the native code.  

There are two declarations of glBlendColor, in GL12.cpp, and GL14.cpp.  My GL driver supports 1.4, and so the function is correctly assigned in the GL14 init code.  The actual native glBlendColor function however, lives in GL12, and is only initialised if the ARB_imaging extension is enabled, which is not the case on my platform.  So the GL14 copy of the function pointer is not being used, and the crash is happening.

I *think* this is also the case on the 0.8 release.

Am I doing something wrong, or is this a bug that needs fixing in the native code?

Excellent library BTW! - no problems apart from this one.

Cheers,
Chris.

elias

Thank you for noticing! It should be fixed in CVS now...

- elias

elias

Now ARB_imaging is split into its own class, like a regular extension.

- elias

cbarrett1974

Thanks Elias,

I've just tried it and glBlendColor works for me now.  :D

Chris.