mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-31 11:20:26 +01:00
mesa: added texture array targets in sizeof_glsl_type()
This commit is contained in:
parent
2c1619869a
commit
ac498f2dce
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue