<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/drivers</tt></b></td></tr>
<tr><td><tt><a href="#file1">gl_vbo.c</a></tt></td><td id="added" class="headtd2" style="padding-left:.3em;padding-right:.3em; background-color:#ddffdd;" align="right">+9</td><td></td><td class="headtd2" style="padding-left:.3em;padding-right:.3em;" nowrap="nowrap">034252e0689d -> 01b45ca393c6</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;" >
Mark the NV vertex range functions as weak (to keep things working on
drivers that don't provide the entry points)
Set the fence at the start (really just to prevent an error the first time
around)
</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/drivers</span><br />
<div class="fileheader" style="margin-bottom:.5em;" ><big><b>gl_vbo.c</b></big> <small id="info" style="color: #888888;" >034252e0689d -> 01b45ca393c6</small></div>
<pre class="diff" style="margin:0;" ><small id="info" style="color: #888888;" >--- lxdream/src/drivers/gl_vbo.c
+++ lxdream/src/drivers/gl_vbo.c
@@ -132,6 +132,7 @@
</small></pre><pre id="context" class="diff" style="margin:0; background-color:#eeeeee;" > {
     vertex_buffer_t buf = vertex_buffer_new( &apple_vtable );
     glGenFencesAPPLE(1, &buf->fence);
</pre><pre id="added" class="diff" style="margin:0; background-color:#ddffdd;" >+    glSetFenceAPPLE(buf->fence);    
</pre><pre id="context" class="diff" style="margin:0; background-color:#eeeeee;" >     return buf;
 }
 
</pre><pre class="diff" style="margin:0;" ><small id="info" style="color: #888888;" >@@ -139,6 +140,13 @@
</small></pre><pre id="context" class="diff" style="margin:0; background-color:#eeeeee;" > 
 #ifdef GL_VERTEX_ARRAY_RANGE_NV
 
</pre><pre id="added" class="diff" style="margin:0; background-color:#ddffdd;" >+#pragma weak glVertexArrayRangeNV
+#pragma weak glFlushVertexArrayRangeNV
+#pragma weak glFinishFenceNV
+#pragma weak glSetFenceNV
+#pragma weak glGenFencesNV
+#pragma weak glDeleteFencesNV
+
</pre><pre id="context" class="diff" style="margin:0; background-color:#eeeeee;" > static void *nv_map( vertex_buffer_t buf, uint32_t size )
 {
     glFinishFenceNV(buf->fence);
</pre><pre class="diff" style="margin:0;" ><small id="info" style="color: #888888;" >@@ -172,6 +180,7 @@
</small></pre><pre id="context" class="diff" style="margin:0; background-color:#eeeeee;" > {
     vertex_buffer_t buf = vertex_buffer_new( &nv_vtable );
     glGenFencesNV(1, &buf->fence);
</pre><pre id="added" class="diff" style="margin:0; background-color:#ddffdd;" >+    glSetFenceNV(buf->fence, GL_ALL_COMPLETED_NV);
</pre><pre id="context" class="diff" style="margin:0; background-color:#eeeeee;" >     return buf;
 }
 
</pre></div>
<center><small>Chaos Theory</small></center>
</div></body></html>