summaryrefslogtreecommitdiffstats
path: root/src/glsl/apps
diff options
context:
space:
mode:
authorMichal Krol <[email protected]>2010-02-10 18:04:07 +0100
committerMichal Krol <[email protected]>2010-02-10 18:04:07 +0100
commit8b1c332a77555b94f5665517e5fdcb416e1a67b7 (patch)
treeca8a42e51ab93b99d389e39237bdd4031a7bc4a5 /src/glsl/apps
parentc1395a71ac5f279edca933a325e32e1512e0046b (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.c4
-rw-r--r--src/glsl/apps/process.c4
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));