Search
lxdream.org :: lxdream/src/pvr2/glrender.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/glrender.c
changeset 665:99ae9dc4cab7
prev655:31a4b664d489
next666:ea369bcf6def
author nkeynes
date Sat Apr 19 00:36:36 2008 +0000 (12 years ago)
permissions -rw-r--r--
last change Move glsl setup out of the drivers
Move pvr2 setup call up to video_gtk (probably needs to go higher really)
file annotate diff log raw
1.1 --- a/src/pvr2/glrender.c Tue Apr 01 08:03:56 2008 +0000
1.2 +++ b/src/pvr2/glrender.c Sat Apr 19 00:36:36 2008 +0000
1.3 @@ -20,6 +20,7 @@
1.4 #include "display.h"
1.5 #include "pvr2/pvr2.h"
1.6 #include "pvr2/scene.h"
1.7 +#include "pvr2/glutil.h"
1.8
1.9 int pvr2_poly_depthmode[8] = { GL_NEVER, GL_LESS, GL_EQUAL, GL_LEQUAL,
1.10 GL_GREATER, GL_NOTEQUAL, GL_GEQUAL,
1.11 @@ -84,6 +85,13 @@
1.12 */
1.13 void pvr2_setup_gl_context()
1.14 {
1.15 +
1.16 + if( glsl_is_supported() ) {
1.17 + if( !glsl_load_shaders( glsl_vertex_shader_src, NULL ) ) {
1.18 + WARN( "Unable to load GL shaders" );
1.19 + }
1.20 + }
1.21 +
1.22 texcache_gl_init(); // Allocate texture IDs
1.23 glCullFace( GL_BACK );
1.24 glEnable( GL_BLEND );
.