Search
lxdream.org :: lxdream/src/tools/genglsl.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/tools/genglsl.c
changeset 1258:f8a9c0fd2abb
prev1240:190df8a791ca
next1288:fdb8f59143c7
author nkeynes
date Mon Mar 05 11:41:03 2012 +1000 (9 years ago)
permissions -rw-r--r--
last change Small cleanups:
Refactor the post-windowing setup into gl_init_driver() in video_gl.c
Move gl_sl.c into src/drivers and tidy up a bit.
Fix OS X compiling plugins with -mdynamic-no-pic
file annotate diff log raw
1.1 --- a/src/tools/genglsl.c Tue Feb 28 17:25:26 2012 +1000
1.2 +++ b/src/tools/genglsl.c Mon Mar 05 11:41:03 2012 +1000
1.3 @@ -389,6 +389,8 @@
1.4 }
1.5 }
1.6
1.7 + fprintf( f, "void glsl_clear_shader();\n" );
1.8 +
1.9 fprintf( f, "#endif /* !lxdream_glsl_H */\n" );
1.10
1.11 fclose(f);
1.12 @@ -480,6 +482,9 @@
1.13 }
1.14 }
1.15
1.16 + fprintf( f, "\nvoid glsl_clear_shader() {\n" );
1.17 + fprintf( f, " glsl_run_cleanup_fn();\n glsl_use_program(0);\n}\n" );
1.18 +
1.19 fprintf( f, "\nstatic void glsl_init_programs( gl_program_t *ids ) {\n" );
1.20 for( program_ptr = data->programs, i=0; program_ptr != NULL; program_ptr = program_ptr->next, i++ ) {
1.21 program_t program = program_ptr->data;
1.22 @@ -494,6 +499,7 @@
1.23 }
1.24 }
1.25 }
1.26 +
1.27 fprintf( f, "}\n" );
1.28
1.29 fclose(f);
.