fixed texturing bug in glmodel

This commit is contained in:
codeanticode
2010-02-02 05:18:49 +00:00
parent 74953f78ff
commit ca1ce39ea5
@@ -239,7 +239,7 @@ public class GLModel implements GLConstants, PConstants {
int offset = firstUpdateIdx * 2;
int size = (lastUpdateIdx - firstUpdateIdx + 1) * 2;
texCoords.put(updateNormalArray, offset, size);
texCoords.put(updateTexCoordArray, offset, size);
texCoords.position(0);
gl.glBufferSubData(GL11.GL_ARRAY_BUFFER, offset * SIZEOF_FLOAT, size * SIZEOF_FLOAT, texCoords);