medfall

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

commit 3e3aeca1610771c531f7b3de575e0b248dd9b2a4
parent 5eac3ccbc9466913ead8800a25891c48d14424e3
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Sun Nov 27 13:24:16 +0200

Use GL_STREAM_DRAW for immediate buffers

Diffstat:
immediate.cc | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/immediate.cc b/immediate.cc @@ -228,7 +228,7 @@ void immediate_render( glGenBuffers( 1, &vbo ); glBindBuffer( GL_ARRAY_BUFFER, vbo ); - glBufferData( GL_ARRAY_BUFFER, ctx->num_triangles * sizeof( ImmediateTriangle ), ctx->triangles, GL_STATIC_DRAW ); + glBufferData( GL_ARRAY_BUFFER, ctx->num_triangles * sizeof( ImmediateTriangle ), ctx->triangles, GL_STREAM_DRAW ); glEnableVertexAttribArray( at_position ); glVertexAttribPointer( at_position, 3, GL_FLOAT, GL_FALSE, sizeof( ImmediateVertex ), 0 );