glsl: Fix ast-to-hir for ARB_fragment_coord_conventions
authorChad Versace <chad.versace@intel.com>
Sat, 23 Oct 2010 17:40:40 +0000 (10:40 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 25 Oct 2010 17:10:58 +0000 (10:10 -0700)
Function ast_declarator_list::hir(), when processing keywords added by
extension ARB_fragment_coord_conventions, made the mistake of checking only if
the extension was __supported by the driver__. The correct behavior is to check
if the extensi0n is __enabled in the parse state__.

NOTE: this is a candidate for the 7.9 branch.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glsl/ast_to_hir.cpp

index 15e1afc4dd271b5fb739afb9f1f9b8b6cf753f7c..4540e98e69b23454032bd3c69e2073dd5cafb980 100644 (file)
@@ -2210,7 +2210,7 @@ ast_declarator_list::hir(exec_list *instructions,
            earlier->type = var->type;
            delete var;
            var = NULL;
-        } else if (state->extensions->ARB_fragment_coord_conventions
+        } else if (state->ARB_fragment_coord_conventions_enable
                    && strcmp(var->name, "gl_FragCoord") == 0
                    && earlier->type == var->type
                    && earlier->mode == var->mode) {