From 100bec43b6f23ef5b27d47a09202258e2b4fdfd1 Mon Sep 17 00:00:00 2001 From: rdb Date: Wed, 26 Jan 2011 15:22:33 +0000 Subject: [PATCH] Work around annoyance in Mesa's GLES implementation --- panda/src/glstuff/glGraphicsStateGuardian_src.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/panda/src/glstuff/glGraphicsStateGuardian_src.cxx b/panda/src/glstuff/glGraphicsStateGuardian_src.cxx index cac8903e7b..3cc6882f41 100644 --- a/panda/src/glstuff/glGraphicsStateGuardian_src.cxx +++ b/panda/src/glstuff/glGraphicsStateGuardian_src.cxx @@ -1216,14 +1216,14 @@ reset() { supports_blend_equation = true; _glBlendEquation = (PFNGLBLENDEQUATIONPROC) get_extension_func(GLPREFIX_QUOTED, "BlendEquation"); - } else if (has_extension("GL_EXT_blend_minmax")) { - supports_blend_equation = true; - _glBlendEquation = (PFNGLBLENDEQUATIONPROC) - get_extension_func(GLPREFIX_QUOTED, "BlendEquationEXT"); } else if (has_extension("GL_OES_blend_subtract")) { supports_blend_equation = true; _glBlendEquation = (PFNGLBLENDEQUATIONPROC) get_extension_func(GLPREFIX_QUOTED, "BlendEquationOES"); + } else if (has_extension("GL_EXT_blend_minmax")) { + supports_blend_equation = true; + _glBlendEquation = (PFNGLBLENDEQUATIONPROC) + get_extension_func(GLPREFIX_QUOTED, "BlendEquationEXT"); } if (supports_blend_equation && _glBlendEquation == NULL) { GLCAT.warning()