diff options
author | Michal Krol <[email protected]> | 2010-02-10 18:04:07 +0100 |
---|---|---|
committer | Michal Krol <[email protected]> | 2010-02-10 18:04:07 +0100 |
commit | 8b1c332a77555b94f5665517e5fdcb416e1a67b7 (patch) | |
tree | ca8a42e51ab93b99d389e39237bdd4031a7bc4a5 /src/glsl/apps | |
parent | c1395a71ac5f279edca933a325e32e1512e0046b (diff) |
Simplify GLSL extension mechanism.
Since extension name and extension name string are the same, collapse
them into one name.
Diffstat (limited to 'src/glsl/apps')
-rw-r--r-- | src/glsl/apps/compile.c | 4 | ||||
-rw-r--r-- | src/glsl/apps/process.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/glsl/apps/compile.c b/src/glsl/apps/compile.c index c9a830b9f3c..3b3c083c2e1 100644 --- a/src/glsl/apps/compile.c +++ b/src/glsl/apps/compile.c @@ -134,8 +134,8 @@ main(int argc, return 0; } - 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") || + sl_pp_context_add_extension(context, "GL_ARB_texture_rectangle")) { fprintf(out, "$ERROR: `%s'\n", sl_pp_context_error_message(context)); printf("Error: %s\n", sl_pp_context_error_message(context)); diff --git a/src/glsl/apps/process.c b/src/glsl/apps/process.c index 569890210f2..2d2ab911ac4 100644 --- a/src/glsl/apps/process.c +++ b/src/glsl/apps/process.c @@ -106,8 +106,8 @@ main(int argc, return -1; } - 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") || + sl_pp_context_add_extension(context, "GL_ARB_texture_rectangle")) { fprintf(out, "$ERROR: `%s'\n", sl_pp_context_error_message(context)); printf("Error: %s\n", sl_pp_context_error_message(context)); |