Author: JonNeal
Date: 2008-07-15 02:08:07 -0400 (Tue, 15 Jul 2008)
New Revision: 1312

Modified:
   trunk/pysoy/src/scenes/Landscape.pym
Log:
Ticket #929: now exactly half of the landscape is correctly rendered.


Modified: trunk/pysoy/src/scenes/Landscape.pym
===================================================================
--- trunk/pysoy/src/scenes/Landscape.pym        2008-07-15 06:04:29 UTC (rev 
1311)
+++ trunk/pysoy/src/scenes/Landscape.pym        2008-07-15 06:08:07 UTC (rev 
1312)
@@ -171,7 +171,7 @@
     gl.glTexCoordPointer(3, gl.GL_FLOAT, sizeof(Vert), <float*> 24) # tx ty tz
     #gl.glDrawArrays(gl.GL_TRIANGLES, 0, self._verts);
     #stdio.printf("%s","glDrawElements\n")
-    gl.glDrawElements (gl.GL_TRIANGLES, 
(self._heightmapTex._width-1)*(self._heightmapTex._height-1)*2,
+    gl.glDrawElements (gl.GL_TRIANGLES, 
(self._heightmapTex._width-1)*(self._heightmapTex._height-1)*2*3,
                     gl.GL_UNSIGNED_SHORT, <Face*> 3)
     gl.glBindBufferARB(gl.GL_ARRAY_BUFFER_ARB, 0);
     

_______________________________________________
PySoy-SVN mailing list
PySoy-SVN@pysoy.org
http://www.pysoy.org/mailman/listinfo/pysoy-svn

Reply via email to