summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/get.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2010-10-28 21:17:42 -0600
committerBrian Paul <[email protected]>2010-10-28 21:17:42 -0600
commit3b82ceec677e875d2f2f9edbcfceafd4d9a85cb7 (patch)
tree49dfa1f27919eaf2cea09940cee07222e3b04a75 /src/mesa/main/get.c
parent433e5e6defc85d8b1d6262aff990e3f5a8b37027 (diff)
mesa: state/queries for GL_MIN/MAX_PROGRAM_TEXEL_OFFSET_EXT
Diffstat (limited to 'src/mesa/main/get.c')
-rw-r--r--src/mesa/main/get.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c
index da9df27bdb6..870c5d76f0a 100644
--- a/src/mesa/main/get.c
+++ b/src/mesa/main/get.c
@@ -266,6 +266,11 @@ static const int extra_EXT_texture_integer[] = {
EXTRA_END
};
+static const int extra_EXT_gpu_shader4[] = {
+ EXT(EXT_gpu_shader4),
+ EXTRA_END
+};
+
EXTRA_EXT(ARB_multitexture);
EXTRA_EXT(ARB_texture_cube_map);
@@ -1198,6 +1203,14 @@ static const struct value_desc values[] = {
CONTEXT_INT(Const.GeometryProgram.MaxVertexVaryingComponents),
extra_ARB_geometry_shader4 },
+ /* GL_EXT_gpu_shader4 / GL 3.0 */
+ { GL_MIN_PROGRAM_TEXEL_OFFSET,
+ CONTEXT_INT(Const.MinProgramTexelOffset),
+ extra_EXT_gpu_shader4 },
+ { GL_MAX_PROGRAM_TEXEL_OFFSET,
+ CONTEXT_INT(Const.MaxProgramTexelOffset),
+ extra_EXT_gpu_shader4 },
+
/* GL 3.0 */
{ GL_NUM_EXTENSIONS, LOC_CUSTOM, TYPE_INT, 0, extra_version_30 },
{ GL_MAJOR_VERSION, CONTEXT_INT(VersionMajor), extra_version_30 },