mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
fixed texturing bug in glmodel
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user