Search
lxdream.org :: lxdream :: r538:7f176617a968
lxdream 0.9.1
released Jun 29
Download Now
changeset538:7f176617a968
parent537:d924be49e192
child539:75f3e594d4a7
authornkeynes
dateTue Nov 20 11:16:09 2007 +0000 (12 years ago)
Fix program/shader types
src/drivers/gl_sl.c
1.1 --- a/src/drivers/gl_sl.c Tue Nov 20 10:27:58 2007 +0000
1.2 +++ b/src/drivers/gl_sl.c Tue Nov 20 11:16:09 2007 +0000
1.3 @@ -28,8 +28,6 @@
1.4
1.5 #define MAX_ERROR_BUF 4096
1.6
1.7 -static GLuint glsl_program, glsl_vert_shader, glsl_frag_shader;
1.8 -
1.9 gboolean glsl_is_supported()
1.10 {
1.11 return isGLExtensionSupported("GL_ARB_fragment_shader") &&
1.12 @@ -38,6 +36,8 @@
1.13 }
1.14
1.15 #ifdef GL_ARB_shader_objects
1.16 +static GLhandleARB glsl_program, glsl_vert_shader, glsl_frag_shader;
1.17 +
1.18 void glsl_print_error( char *msg, GLhandleARB obj )
1.19 {
1.20 char buf[MAX_ERROR_BUF];
1.21 @@ -107,6 +107,8 @@
1.22 }
1.23
1.24 #else
1.25 +static GLuint glsl_program, glsl_vert_shader, glsl_frag_shader;
1.26 +
1.27 gboolean glsl_check_shader_error( char *msg, GLuint shader )
1.28 {
1.29 GLint value;
.