summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Krol <[email protected]>2009-12-10 12:39:10 +0100
committerMichal Krol <[email protected]>2009-12-10 12:39:10 +0100
commit48c60b0ecbc7d2f2b153d218a46c61928daddb8e (patch)
tree9a948c9359a501eb0460051b1c76c3483544b362
parent91e164b3d0b1d36bfdf369266ae7e1ab396f1ba2 (diff)
slang: Explicitly enable ARB_draw_buffers and ARB_texture_rectangle.
They are no longer built into the glsl preprocessor.
-rw-r--r--src/mesa/shader/slang/slang_compile.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/shader/slang/slang_compile.c b/src/mesa/shader/slang/slang_compile.c
index a194f2fc9e6..00db299a271 100644
--- a/src/mesa/shader/slang/slang_compile.c
+++ b/src/mesa/shader/slang/slang_compile.c
@@ -2603,6 +2603,13 @@ compile_with_grammar(const char *source,
return GL_FALSE;
}
+ if (sl_pp_context_add_extension(context, "ARB_draw_buffers", "GL_ARB_draw_buffers") ||
+ sl_pp_context_add_extension(context, "ARB_texture_rectangle", "GL_ARB_texture_rectangle")) {
+ slang_info_log_error(infolog, "%s", sl_pp_context_error_message(context));
+ sl_pp_context_destroy(context);
+ return GL_FALSE;
+ }
+
memset(&options, 0, sizeof(options));
if (sl_pp_tokenise(context, source, &options, &intokens)) {
slang_info_log_error(infolog, "%s", sl_pp_context_error_message(context));