summaryrefslogtreecommitdiff
path: root/src/glsl/builtin_types.h
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2011-02-25 23:11:20 -0800
committerKenneth Graunke <kenneth@whitecape.org>2011-02-28 10:35:57 -0800
commit0a163cf56d1e412629cb802480998a982a47bb3c (patch)
tree92b56e519a393919a6e39648b37ea03523fc5205 /src/glsl/builtin_types.h
parenteb639349e289a6b8be06a54f5e9e0ce18c71d511 (diff)
glsl: Enable GL_OES_texture_3D extension for ES2.
Diffstat (limited to 'src/glsl/builtin_types.h')
-rw-r--r--src/glsl/builtin_types.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/glsl/builtin_types.h b/src/glsl/builtin_types.h
index 8ccbf6e312..58b9a81273 100644
--- a/src/glsl/builtin_types.h
+++ b/src/glsl/builtin_types.h
@@ -27,6 +27,10 @@ const glsl_type glsl_type::_error_type =
const glsl_type glsl_type::_void_type =
glsl_type(GL_INVALID_ENUM, GLSL_TYPE_VOID, 0, 0, "void");
+const glsl_type glsl_type::_sampler3D_type =
+ glsl_type(GL_SAMPLER_3D, GLSL_SAMPLER_DIM_3D, 0, 0, GLSL_TYPE_FLOAT,
+ "sampler3D");
+
const glsl_type *const glsl_type::error_type = & glsl_type::_error_type;
const glsl_type *const glsl_type::void_type = & glsl_type::_void_type;
@@ -181,8 +185,6 @@ const glsl_type glsl_type::builtin_110_types[] = {
"sampler1DShadow"),
glsl_type(GL_SAMPLER_2D_SHADOW, GLSL_SAMPLER_DIM_2D, 1, 0, GLSL_TYPE_FLOAT,
"sampler2DShadow"),
- glsl_type(GL_SAMPLER_3D, GLSL_SAMPLER_DIM_3D, 0, 0, GLSL_TYPE_FLOAT,
- "sampler3D"),
};
/*@}*/