mixed up vertexes and triangles .. would have been a hard to find error...
This commit is contained in:
parent
dc2205d3dc
commit
b4710797fc
@ -241,7 +241,7 @@ parseIQM a =
|
|||||||
checkError "bufferData vao"
|
checkError "bufferData vao"
|
||||||
-- tell layout
|
-- tell layout
|
||||||
vertexAttribPointer l $= (ToFloat, VertexArrayDescriptor num Float 0 nullPtr)
|
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 0) IQMPosition va' len
|
||||||
initBuffer (AttribLocation 1) IQMNormal va' len
|
initBuffer (AttribLocation 1) IQMNormal va' len
|
||||||
initBuffer (AttribLocation 2) IQMTexCoord va' len
|
initBuffer (AttribLocation 2) IQMTexCoord va' len
|
||||||
|
Loading…
Reference in New Issue
Block a user