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 1256:a9d29fe74bf3
prev1248:0ea1904e2b14
author nkeynes
date Sun Mar 04 21:10:12 2012 +1000 (8 years ago)
permissions -rw-r--r--
last change Move glsl loading into common gl code, and set a display capability flag
file annotate diff log raw
1.1 --- a/src/pvr2/gl_sl.c Sat Mar 03 15:56:29 2012 +1000
1.2 +++ b/src/pvr2/gl_sl.c Sun Mar 04 21:10:12 2012 +1000
1.3 @@ -492,3 +492,21 @@
1.4 glsl_use_program(0);
1.5 }
1.6
1.7 +gboolean glsl_init( display_driver_t driver )
1.8 +{
1.9 + gboolean result;
1.10 + if( glsl_is_supported() && isGLMultitextureSupported() ) {
1.11 + if( !glsl_load_shaders( ) ) {
1.12 + WARN( "Unable to load GL shaders" );
1.13 + result = FALSE;
1.14 + } else {
1.15 + INFO( "Shaders loaded successfully" );
1.16 + result = TRUE;
1.17 + }
1.18 + } else {
1.19 + INFO( "Shaders not supported" );
1.20 + result = FALSE;
1.21 + }
1.22 + driver->capabilities.has_sl = result;
1.23 + return result;
1.24 +}
.