summaryrefslogtreecommitdiff
path: root/glsl_parser_extras.cpp
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2010-04-07 17:13:44 -0700
committerIan Romanick <ian.d.romanick@intel.com>2010-04-07 17:13:44 -0700
commit0c824653952a67722c242616bb34a4796b42f660 (patch)
tree3e65d21684b5c01b934870240c1d27e07baab7e5 /glsl_parser_extras.cpp
parentc77b257094b15e7c53b62cb50bfbcd7c5003f2a8 (diff)
Treat texture rectangles as an extension that is enabled be default
Diffstat (limited to 'glsl_parser_extras.cpp')
-rw-r--r--glsl_parser_extras.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/glsl_parser_extras.cpp b/glsl_parser_extras.cpp
index 553cd675a7..fd44e96602 100644
--- a/glsl_parser_extras.cpp
+++ b/glsl_parser_extras.cpp
@@ -135,6 +135,9 @@ _mesa_glsl_process_extension(const char *name, YYLTYPE *name_locp,
state->ARB_draw_buffers_enable = (ext_mode != extension_disable);
state->ARB_draw_buffers_warn = (ext_mode == extension_warn);
}
+ } if (strcmp(name, "GL_ARB_texture_rectangle") == 0) {
+ state->ARB_texture_rectangle_enable = (ext_mode != extension_disable);
+ state->ARB_texture_rectangle_warn = (ext_mode == extension_warn);
} else {
unsupported = true;
}
@@ -736,6 +739,7 @@ main(int argc, char **argv)
state.error = false;
state.temp_index = 0;
state.loop_or_switch_nesting = NULL;
+ state.ARB_texture_rectangle_enable = true;
_mesa_glsl_lexer_ctor(& state, shader, shader_len);
_mesa_glsl_parse(& state);