From b4710797fc5bbdd775eb85b6aac8812f502e4222 Mon Sep 17 00:00:00 2001 From: Stefan Dresselhaus Date: Sun, 24 Aug 2014 22:50:49 +0200 Subject: [PATCH] mixed up vertexes and triangles .. would have been a hard to find error... --- src/Importer/IQM/Parser.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Importer/IQM/Parser.hs b/src/Importer/IQM/Parser.hs index e69de34..8a98ab2 100644 --- a/src/Importer/IQM/Parser.hs +++ b/src/Importer/IQM/Parser.hs @@ -241,7 +241,7 @@ parseIQM a = checkError "bufferData vao" -- tell layout vertexAttribPointer l $= (ToFloat, VertexArrayDescriptor num Float 0 nullPtr) - let len = (fromIntegral.num_triangles.bareheader) bare + let len = (fromIntegral.num_vertexes.bareheader) bare initBuffer (AttribLocation 0) IQMPosition va' len initBuffer (AttribLocation 1) IQMNormal va' len initBuffer (AttribLocation 2) IQMTexCoord va' len