Search
lxdream.org :: lxdream/src/pvr2/gl_sl.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/gl_sl.c
changeset 656:031d23fa6d0b
prev635:76c63aac3590
next669:ab344e42bca9
author nkeynes
date Wed Apr 02 01:46:58 2008 +0000 (12 years ago)
permissions -rw-r--r--
last change Add configure-time checks for fbo and shader functions in libGL (so linking
doesn't fail on really old libGL implementations)
file annotate diff log raw
1.1 --- a/src/pvr2/gl_sl.c Thu Feb 14 13:54:11 2008 +0000
1.2 +++ b/src/pvr2/gl_sl.c Wed Apr 02 01:46:58 2008 +0000
1.3 @@ -128,7 +128,7 @@
1.4 glDeleteObjectARB(glsl_frag_shader);
1.5 }
1.6
1.7 -#else
1.8 +#elif HAVE_OPENGL_SHADER
1.9 static GLuint glsl_program = 0, glsl_vert_shader = 0, glsl_frag_shader = 0;
1.10
1.11 gboolean glsl_check_shader_error( char *msg, GLuint shader )
1.12 @@ -220,4 +220,15 @@
1.13 glDeleteShader(glsl_vert_shader);
1.14 glDeleteShader(glsl_frag_shader);
1.15 }
1.16 +
1.17 +#else
1.18 +gboolean glsl_load_shaders( const char *vertex_src, const char *fragment_src )
1.19 +{
1.20 + return FALSE;
1.21 +}
1.22 +
1.23 +void glsl_unload_shaders()
1.24 +{
1.25 +}
1.26 +
1.27 #endif
.