# HG changeset patch # User John Tsiombikas # Date 1326930665 -7200 # Node ID 9b10c8183d4ec5939bb217641d7eec964d271a06 # Parent 7650e941805c26924af72052bab8c2ca23224b62 fixed the texcoords diff -r 7650e941805c -r 9b10c8183d4e src/scene.c --- a/src/scene.c Thu Jan 19 00:17:49 2012 +0200 +++ b/src/scene.c Thu Jan 19 01:51:05 2012 +0200 @@ -126,7 +126,7 @@ m->norm_buf = create_buffer(GL_ARRAY_BUFFER, aim->mNormals, m->num_verts * sizeof *aim->mNormals); } if(aim->mTextureCoords) { - m->tex_buf = create_buffer(GL_ARRAY_BUFFER, aim->mTextureCoords, m->num_verts * sizeof *aim->mTextureCoords); + m->tex_buf = create_buffer(GL_ARRAY_BUFFER, aim->mTextureCoords[0], m->num_verts * sizeof *aim->mTextureCoords[0]); } /* indices are scattered all over the fucking place... map the buffer and collect them there directly */