mesa: added texture array targets in sizeof_glsl_type()
authorBrian Paul <brianp@vmware.com>
Fri, 26 Feb 2010 02:05:11 +0000 (19:05 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 26 Feb 2010 03:11:54 +0000 (20:11 -0700)
src/mesa/shader/shader_api.c

index d0d0575b0b5fadba5893c211cee35bf48c68599e..940fe2d03ced364a542ce5ef7cf36f9bf4765780 100644 (file)
@@ -769,6 +769,8 @@ sizeof_glsl_type(GLenum type)
    case GL_SAMPLER_2D_SHADOW:
    case GL_SAMPLER_2D_RECT_ARB:
    case GL_SAMPLER_2D_RECT_SHADOW_ARB:
+   case GL_SAMPLER_1D_ARRAY_EXT:
+   case GL_SAMPLER_2D_ARRAY_EXT:
    case GL_SAMPLER_1D_ARRAY_SHADOW_EXT:
    case GL_SAMPLER_2D_ARRAY_SHADOW_EXT:
    case GL_SAMPLER_CUBE_SHADOW_EXT:
@@ -848,6 +850,8 @@ is_sampler_type(GLenum type)
    case GL_SAMPLER_2D_RECT_SHADOW_ARB:
    case GL_SAMPLER_1D_ARRAY_EXT:
    case GL_SAMPLER_2D_ARRAY_EXT:
+   case GL_SAMPLER_1D_ARRAY_SHADOW_EXT:
+   case GL_SAMPLER_2D_ARRAY_SHADOW_EXT:
       return GL_TRUE;
    default:
       return GL_FALSE;