glsl: GLSL extensions have the GL_ prefix
authorBrian Paul <brianp@vmware.com>
Wed, 10 Feb 2010 15:27:03 +0000 (08:27 -0700)
committerBrian Paul <brianp@vmware.com>
Wed, 10 Feb 2010 15:28:37 +0000 (08:28 -0700)
Both the #extension directive name and the preprocessor symbol start
with the GL_ prefix.  For example:

...

New glean/glsl1 tests have been added to test the #extension feature.

src/mesa/shader/slang/slang_compile.c

index 63d10f45978705fafceb529c905335a242cdbcc1..49fe2fa897a477509a9b863bd96c24e275c4527c 100644 (file)
@@ -2608,8 +2608,8 @@ 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")) {
+   if (sl_pp_context_add_extension(context, "GL_ARB_draw_buffers", "GL_ARB_draw_buffers") ||
+       sl_pp_context_add_extension(context, "GL_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;