medfall

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit f2c7b6a4affbaf21c6a37dac4b872c821599a8b1
parent aa58a6ead2d6250f7c1433333eed590dc2ba3438
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Fri Sep  2 15:42:13 -0700

Fix typo causing the immediate renderer's UVs to get messed up

Diffstat:
immediate.cc | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/immediate.cc b/immediate.cc @@ -154,7 +154,7 @@ void immediate_render( glBindBuffer( GL_ARRAY_BUFFER, vbos[ 2 ] ); glBufferData( GL_ARRAY_BUFFER, ctx->num_triangles * sizeof( ImmediateTriangle ), ctx->triangles, GL_STATIC_DRAW ); glEnableVertexAttribArray( at_uv ); - glVertexAttribPointer( at_uv, 3, GL_FLOAT, GL_FALSE, sizeof( ImmediateVertex ), ( GLvoid * ) offsetof( ImmediateVertex, uv ) ); + glVertexAttribPointer( at_uv, 2, GL_FLOAT, GL_FALSE, sizeof( ImmediateVertex ), ( GLvoid * ) offsetof( ImmediateVertex, uv ) ); glUniform1i( un_texture, 0 ); }