Mesa (master): mesa: added texture array targets in sizeof_glsl_type()
Brian Paul
brianp at kemper.freedesktop.org
Fri Feb 26 03:14:52 UTC 2010
Module: Mesa
Branch: master
Commit: ac498f2dce6a0d4e78ed2a78b567d61fe6569970
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ac498f2dce6a0d4e78ed2a78b567d61fe6569970
Author: Brian Paul <brianp at vmware.com>
Date: Thu Feb 25 19:05:11 2010 -0700
mesa: added texture array targets in sizeof_glsl_type()
---
src/mesa/shader/shader_api.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/mesa/shader/shader_api.c b/src/mesa/shader/shader_api.c
index d0d0575..940fe2d 100644
--- a/src/mesa/shader/shader_api.c
+++ b/src/mesa/shader/shader_api.c
@@ -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;
More information about the mesa-commit
mailing list