summaryrefslogtreecommitdiffstats
path: root/src/demos/util
diff options
context:
space:
mode:
Diffstat (limited to 'src/demos/util')
-rw-r--r--src/demos/util/ObjReader.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/demos/util/ObjReader.java b/src/demos/util/ObjReader.java
index f8a6cec..6638b61 100644
--- a/src/demos/util/ObjReader.java
+++ b/src/demos/util/ObjReader.java
@@ -312,8 +312,10 @@ public class ObjReader {
newIndices.trim();
vertices = BufferUtils.newFloatBuffer(newVertices.size());
vertices.put(newVertices.getData());
+ vertices.rewind();
normals = BufferUtils.newFloatBuffer(newVertexNormals.size());
normals.put(newVertexNormals.getData());
+ normals.rewind();
faceIndices = newIndices;
tmpVertices = null;
tmpVertexNormals = null;