From: Ian Romanick Date: Tue, 9 Nov 2010 20:48:34 +0000 (-0800) Subject: glsl: Fix incorrect gl_type of sampler2DArray and sampler1DArrayShadow X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=956ae44dcf63671bb5707c369d3ff2bee3476cd9;p=mesa.git glsl: Fix incorrect gl_type of sampler2DArray and sampler1DArrayShadow NOTE: this is a candidate for the 7.9 branch. --- diff --git a/src/glsl/builtin_types.h b/src/glsl/builtin_types.h index 7175e08afb9..443ae1606ed 100644 --- a/src/glsl/builtin_types.h +++ b/src/glsl/builtin_types.h @@ -275,9 +275,9 @@ const glsl_type glsl_type::builtin_ARB_texture_rectangle_types[] = { const glsl_type glsl_type::builtin_EXT_texture_array_types[] = { glsl_type(GL_SAMPLER_1D_ARRAY, GLSL_SAMPLER_DIM_1D, 0, 1, GLSL_TYPE_FLOAT, "sampler1DArray"), - glsl_type(GL_SAMPLER_1D_ARRAY_SHADOW, - GLSL_SAMPLER_DIM_2D, 0, 1, GLSL_TYPE_FLOAT, "sampler2DArray"), glsl_type(GL_SAMPLER_2D_ARRAY, + GLSL_SAMPLER_DIM_2D, 0, 1, GLSL_TYPE_FLOAT, "sampler2DArray"), + glsl_type(GL_SAMPLER_1D_ARRAY_SHADOW, GLSL_SAMPLER_DIM_1D, 1, 1, GLSL_TYPE_FLOAT, "sampler1DArrayShadow"), glsl_type(GL_SAMPLER_2D_ARRAY_SHADOW, GLSL_SAMPLER_DIM_2D, 1, 1, GLSL_TYPE_FLOAT, "sampler2DArrayShadow"),