view3d

changeset 2:9b10c8183d4e

fixed the texcoords
author John Tsiombikas <nuclear@mutantstargoat.com>
date Thu, 19 Jan 2012 01:51:05 +0200
parents 7650e941805c
children 7e982a61852a
files src/scene.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line diff
     1.1 --- a/src/scene.c	Thu Jan 19 00:17:49 2012 +0200
     1.2 +++ b/src/scene.c	Thu Jan 19 01:51:05 2012 +0200
     1.3 @@ -126,7 +126,7 @@
     1.4  		m->norm_buf = create_buffer(GL_ARRAY_BUFFER, aim->mNormals, m->num_verts * sizeof *aim->mNormals);
     1.5  	}
     1.6  	if(aim->mTextureCoords) {
     1.7 -		m->tex_buf = create_buffer(GL_ARRAY_BUFFER, aim->mTextureCoords, m->num_verts * sizeof *aim->mTextureCoords);
     1.8 +		m->tex_buf = create_buffer(GL_ARRAY_BUFFER, aim->mTextureCoords[0], m->num_verts * sizeof *aim->mTextureCoords[0]);
     1.9  	}
    1.10  
    1.11  	/* indices are scattered all over the fucking place... map the buffer and collect them there directly */