glsl: Fix incorrect gl_type of sampler2DArray and sampler1DArrayShadow
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 9 Nov 2010 20:48:34 +0000 (12:48 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 9 Nov 2010 21:05:07 +0000 (13:05 -0800)
NOTE: this is a candidate for the 7.9 branch.

src/glsl/builtin_types.h

index 7175e08afb9663a9cf702449100f2b7cae72c0c1..443ae1606ed7f0dfac96948d6da35bf69c4cf0f1 100644 (file)
@@ -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"),