mixed up vertexes and triangles .. would have been a hard to find error...
This commit is contained in:
		@@ -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
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user