Search
lxdream.org :: lxdream/src/pvr2/texcache.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/texcache.c
changeset 1233:06923d1020de
prev1221:f50407acc682
next1236:d93175c36387
author nkeynes
date Thu Feb 23 22:40:50 2012 +1000 (7 years ago)
permissions -rw-r--r--
last change Fix non-shader rendering
file annotate diff log raw
1.1 --- a/src/pvr2/texcache.c Mon Feb 13 22:16:43 2012 +1000
1.2 +++ b/src/pvr2/texcache.c Thu Feb 23 22:40:50 2012 +1000
1.3 @@ -89,12 +89,12 @@
1.4 * Setup the initial texture ids (must be called after the GL context is
1.5 * prepared)
1.6 */
1.7 -void texcache_gl_init( )
1.8 +void texcache_gl_init( gboolean withShaders )
1.9 {
1.10 int i;
1.11 GLuint texids[MAX_TEXTURES];
1.12
1.13 - if( glsl_is_supported() && isGLMultitextureSupported() ) {
1.14 + if( withShaders ) {
1.15 texcache_have_palette_shader = TRUE;
1.16 texcache_palette_valid = FALSE;
1.17 glGenTextures(1, &texcache_palette_texid );
.