glsl: Remove duplicate definition of gl_MaxTess*ImageUniforms built-in constants.
authorFrancisco Jerez <currojerez@riseup.net>
Sun, 16 Aug 2015 22:39:38 +0000 (01:39 +0300)
committerFrancisco Jerez <currojerez@riseup.net>
Thu, 20 Aug 2015 09:28:48 +0000 (12:28 +0300)
These seem to have been re-added at some point during the
ARB_tessellation_shader implementation work.  AFAICT the second
(correct) definition of each constant would have had no effect because
the symbols were already defined.

Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/glsl/builtin_variables.cpp

index c6fdccfd721a20ee51b03d7d1a383b0db6718786..4966ba3ff4e4a2475afe5852efbb3a5c136d6958 100644 (file)
@@ -754,8 +754,6 @@ builtin_variable_generator::generate_constants()
                 state->Const.MaxImageSamples);
       add_const("gl_MaxVertexImageUniforms",
                 state->Const.MaxVertexImageUniforms);
-      add_const("gl_MaxTessControlImageUniforms", 0);
-      add_const("gl_MaxTessEvaluationImageUniforms", 0);
       add_const("gl_MaxGeometryImageUniforms",
                 state->Const.MaxGeometryImageUniforms);
       add_const("gl_MaxFragmentImageUniforms",