Search
lxdream.org :: lxdream/src/pvr2/glrender.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/glrender.c
changeset 1233:06923d1020de
prev1232:e5b12e2fe6ba
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/glrender.c Thu Feb 23 22:20:15 2012 +1000
1.2 +++ b/src/pvr2/glrender.c Thu Feb 23 22:40:50 2012 +1000
1.3 @@ -123,7 +123,7 @@
1.4 #ifdef APPLE_BUILD
1.5 CGL_MACRO_CONTEXT = CGLGetCurrentContext();
1.6 #endif
1.7 - texcache_gl_init(); // Allocate texture IDs
1.8 + texcache_gl_init(have_shaders); // Allocate texture IDs
1.9 glDisable( GL_CULL_FACE );
1.10 glEnable( GL_BLEND );
1.11 glEnable( GL_DEPTH_TEST );
1.12 @@ -441,7 +441,7 @@
1.13 /* Vertex array pointers */
1.14 glVertexPointer(3, GL_FLOAT, sizeof(struct vertex_struct), &pvr2_scene.vertex_array[0].x);
1.15 glColorPointer(4, GL_FLOAT, sizeof(struct vertex_struct), &pvr2_scene.vertex_array[0].rgba[0]);
1.16 - glTexCoordPointer(4, GL_FLOAT, sizeof(struct vertex_struct), &pvr2_scene.vertex_array[0].u);
1.17 + glTexCoordPointer(2, GL_FLOAT, sizeof(struct vertex_struct), &pvr2_scene.vertex_array[0].u);
1.18 glSecondaryColorPointerEXT(3, GL_FLOAT, sizeof(struct vertex_struct), pvr2_scene.vertex_array[0].offset_rgba );
1.19 glFogCoordPointerEXT(GL_FLOAT, sizeof(struct vertex_struct), &pvr2_scene.vertex_array[0].offset_rgba[3] );
1.20 }
.