LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: cbarrett1974 on February 17, 2004, 20:58:14

Title: glBlendColor null function pointer
Post by: cbarrett1974 on February 17, 2004, 20:58:14
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.
Title: glBlendColor null function pointer
Post by: elias on February 17, 2004, 21:31:52
Thank you for noticing! It should be fixed in CVS now...

- elias
Title: glBlendColor null function pointer
Post by: elias on February 17, 2004, 22:04:09
Now ARB_imaging is split into its own class, like a regular extension.

- elias
Title: glBlendColor null function pointer
Post by: cbarrett1974 on February 18, 2004, 09:15:00
Thanks Elias,

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

Chris.