Search
lxdream.org :: lxdream :: r1136:078a2202958a
lxdream 0.9.1
released Jun 29
Download Now
changeset1136:078a2202958a
parent1135:68daed8f38af
child1137:4799d64b3478
authornkeynes
dateSun Oct 24 13:10:53 2010 +1000 (9 years ago)
Ensure stencil is disabled after use.
src/pvr2/glrender.c
1.1 --- a/src/pvr2/glrender.c Sun Oct 24 11:50:17 2010 +1000
1.2 +++ b/src/pvr2/glrender.c Sun Oct 24 13:10:53 2010 +1000
1.3 @@ -210,7 +210,6 @@
1.4 glBindTexture(GL_TEXTURE_2D, poly->tex_id);
1.5 }
1.6 if( poly->mod_vertex_index == -1 ) {
1.7 - glDisable( GL_STENCIL_TEST );
1.8 render_set_context( poly->context, depth_mode );
1.9 gl_draw_vertexes(poly);
1.10 } else {
1.11 @@ -228,6 +227,7 @@
1.12 }
1.13 glStencilFunc(GL_EQUAL, 2, 2);
1.14 gl_draw_mod_vertexes(poly);
1.15 + glDisable( GL_STENCIL_TEST );
1.16 }
1.17 }
1.18
1.19 @@ -426,6 +426,7 @@
1.20 case 0x0F:
1.21 glDepthMask( GL_TRUE );
1.22 glStencilOp( GL_KEEP, GL_KEEP, GL_KEEP );
1.23 + glDisable( GL_STENCIL_TEST );
1.24 return; // End-of-list
1.25 case 0x0E:
1.26 tile_list = (uint32_t *)(pvr2_main_ram + (entry&0x007FFFFF));
.