LWJGL Forum

Programming => OpenGL => Topic started by: frostregen on July 06, 2009, 21:20:31

Title: EXTBlendSubtract or GL14 is missing GL_FUNC_ADD
Post by: frostregen on July 06, 2009, 21:20:31
I had to switch from ARBImaging.glBlendEquation() to GL14.glBlendEquation,
because ATI openGL drivers do not support ARBImaging.

I can not find the basic GL_FUNC_ADD in GL14.
I can switch to GL_FUNC_REVERSE_SUBTRACT via EXTBlendSubtract, but not back to ADD...

I think GL_FUNC_ADD plus the other basic modes should be available from GL14. (Or EXTBlendSubtract)
Currently I have to use ARBImaging.GL_FUNC_ADD, which works, but does not seem correct.

-Frostregen
Title: Re: EXTBlendSubtract or GL14 is missing GL_FUNC_ADD
Post by: spasi on July 07, 2009, 12:34:57
I added the following in GL14:

GL_BLEND_COLOR, GL_BLEND_EQUATION
GL_FUNC_ADD, GL_FUNC_SUBTRACT, GL_FUNC_REVERSE_SUBTRACT, GL_MIN, GL_MAX

Let me know if something else is missing.
Title: Re: EXTBlendSubtract or GL14 is missing GL_FUNC_ADD
Post by: frostregen on July 07, 2009, 15:05:01
Thx :)

After looking into OpenGL1.4 specs, this seems correct now.