<html>
<body>
  <div id="body" style="background-color:#ffffff;" >
<table cellspacing="0" cellpadding="0" border="0" rules="cols">
<tr class="head" style="border-bottom-width:1px;border-bottom-style:solid;" ><td class="headtd" style="padding:0;padding-top:.2em;" colspan="4">Commit in <b><tt>lxdream/src/pvr2</tt></b></td></tr>
<tr><td><tt><a href="#file1">glrender.c</a></tt></td><td id="added" class="headtd2" style="padding-left:.3em;padding-right:.3em; background-color:#ddffdd;" align="right">+2</td><td id="removed" class="headtd2" style="padding-left:.3em;padding-right:.3em; background-color:#ffdddd;" align="right">-1</td><td class="headtd2" style="padding-left:.3em;padding-right:.3em;" nowrap="nowrap">68daed8f38af -> 078a2202958a</td></tr>
</table>
<pre class="comment" style="white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap;white-space:pre-wrap;word-wrap:break-word;padding:4px;border:1px dashed #000000;background-color:#ffffdd;" >
Ensure stencil is disabled after use.
</pre>
<hr /><a name="file1" /><div class="file" style="border:1px solid #eeeeee;margin-top:1em;margin-bottom:1em;" >
<span class="pathname" style="font-family:monospace; float:right;" >lxdream/src/pvr2</span><br />
<div class="fileheader" style="margin-bottom:.5em;" ><big><b>glrender.c</b></big> <small id="info" style="color: #888888;" >68daed8f38af -> 078a2202958a</small></div>
<pre class="diff" style="margin:0;" ><small id="info" style="color: #888888;" >--- lxdream/src/pvr2/glrender.c
+++ lxdream/src/pvr2/glrender.c
@@ -210,7 +210,6 @@
</small></pre><pre id="context" class="diff" style="margin:0; background-color:#eeeeee;" >         glBindTexture(GL_TEXTURE_2D, poly->tex_id);
     }
     if( poly->mod_vertex_index == -1 ) {
</pre><pre id="removed" class="diff" style="margin:0; background-color:#ffdddd;" >-        glDisable( GL_STENCIL_TEST );
</pre><pre id="context" class="diff" style="margin:0; background-color:#eeeeee;" >         render_set_context( poly->context, depth_mode );
         gl_draw_vertexes(poly);
     }  else {
</pre><pre class="diff" style="margin:0;" ><small id="info" style="color: #888888;" >@@ -228,6 +227,7 @@
</small></pre><pre id="context" class="diff" style="margin:0; background-color:#eeeeee;" >         }
         glStencilFunc(GL_EQUAL, 2, 2);
         gl_draw_mod_vertexes(poly);
</pre><pre id="added" class="diff" style="margin:0; background-color:#ddffdd;" >+        glDisable( GL_STENCIL_TEST );
</pre><pre id="context" class="diff" style="margin:0; background-color:#eeeeee;" >     }
 }
 
</pre><pre class="diff" style="margin:0;" ><small id="info" style="color: #888888;" >@@ -426,6 +426,7 @@
</small></pre><pre id="context" class="diff" style="margin:0; background-color:#eeeeee;" >         case 0x0F:
             glDepthMask( GL_TRUE );
             glStencilOp( GL_KEEP, GL_KEEP, GL_KEEP );
</pre><pre id="added" class="diff" style="margin:0; background-color:#ddffdd;" >+            glDisable( GL_STENCIL_TEST );
</pre><pre id="context" class="diff" style="margin:0; background-color:#eeeeee;" >             return; // End-of-list
         case 0x0E:
             tile_list = (uint32_t *)(pvr2_main_ram + (entry&0x007FFFFF));
</pre></div>
<center><small>Chaos Theory</small></center>
</div></body></html>