On 9/21/06, Roderick Colenbrander <[EMAIL PROTECTED]> wrote:
Hi,
This patch changes the detection extension detection for
glBlendColor/glBlendEquation. The function glBlendColor is part of OpenGL 1.1
and is supported on all OpenGL implementations. Officially it is part of the
GL_ARB_imaging extension but not all vendors fully implement it and that's why
only Nvidia and 3dlabs advertise it. This causes glBlendColor not to work on
other implementations. So in case of GL 1.1, the detection is dropped.
Further glBlendEquation is part of GL_ARB_imaging aswell. For the same reason
GL_ARB_imaging can't be used to detect glBlendEquation. This call isn't
supported on all OpenGL implementations. Luckily it is part of
'GL_EXT_blend_min_max' so that is used now.
Roderick, Mesa calls the extension "GL_EXT_blend_minmax", and so does
the spec. I don't know what exactly uses the min_max form. Is this a
typo?
http://www.opengl.org/registry/specs/EXT/blend_minmax.txt
http://www.google.com/search?hl=en&lr=&q=GL_EXT_blend_min_max&btnG=Search
Also, the TRACE call in device.c:4513 needs a \n added too ;)
Jesse