Search
lxdream.org :: lxdream :: r679:f5ae66677a49
lxdream 0.9.1
released Jun 29
Download Now
changeset679:f5ae66677a49
parent678:35eb00945316
child680:e237d43e011d
authornkeynes
dateSun Jun 01 00:37:27 2008 +0000 (11 years ago)
Fix shaders to be disabled until explicitly requested
src/pvr2/gl_sl.c
1.1 --- a/src/pvr2/gl_sl.c Thu May 29 11:00:26 2008 +0000
1.2 +++ b/src/pvr2/gl_sl.c Sun Jun 01 00:37:27 2008 +0000
1.3 @@ -99,6 +99,7 @@
1.4 if( pok ) {
1.5 glUseProgramObjectARB(glsl_program);
1.6 pok = glsl_check_program_error( "Failed to apply shader program", glsl_program );
1.7 + glsl_enable_shaders(FALSE); // initially disabled
1.8 } else {
1.9 glsl_unload_shaders();
1.10 }
1.11 @@ -191,6 +192,8 @@
1.12
1.13 if( pok ) {
1.14 glUseProgram(glsl_program);
1.15 + pok = glsl_check_program_error( "Failed to apply shader program", glsl_program );
1.16 + glsl_enable_shaders(FALSE); // initially disabled
1.17 } else {
1.18 glsl_unload_shaders();
1.19 }
.