Search
lxdream.org :: lxdream/src/drivers/gl_sl.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/drivers/gl_sl.c
changeset 538:7f176617a968
prev477:9a373f2ff009
next540:a3767018a96d
author nkeynes
date Tue Nov 20 11:16:09 2007 +0000 (13 years ago)
permissions -rw-r--r--
last change Fix program/shader types
file annotate diff log raw
1.1 --- a/src/drivers/gl_sl.c Wed Oct 31 09:10:23 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;
.