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)
commit6e006273840282e06a08655553821ef8176b2d9c
tree48cf15ab80bd263e069409cbeb8a177f94fe7cfb
parentaf03c14d4cc82eaeb884fe19171bfbb23b5dc75e
glsl: Fix ast-to-hir for ARB_fragment_coord_conventions

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