瀏覽代碼

glsl: GLSL extensions have the GL_ prefix

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.
tags/7.8-rc1
Brian Paul 15 年之前
父節點
當前提交
eb095b67ad
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      src/mesa/shader/slang/slang_compile.c

+ 2
- 2
src/mesa/shader/slang/slang_compile.c 查看文件

@@ -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;

Loading…
取消
儲存