medfall

A super great game engine
Log | Files | Refs

commit b70789f9347aed21957201534aee03bbe9bbd18d
parent 76c141fce8cd5ece190011a9187954ef01f69043
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Thu Aug 31 00:17:47 +0300

Remove some now unnecessary GL calls

Diffstat:
renderer.cc | 2--
1 file changed, 0 insertions(+), 2 deletions(-)
diff --git a/renderer.cc b/renderer.cc @@ -100,7 +100,6 @@ static void bind_fb( FB fb ) { void renderer_init() { glGenBuffers( 1, &uniforms ); glBindBuffer( GL_UNIFORM_BUFFER, uniforms ); - glBufferData( GL_UNIFORM_BUFFER, UNIFORM_BUFFER_SIZE, NULL, GL_DYNAMIC_DRAW ); in_frame = false; in_pass = false; @@ -122,7 +121,6 @@ void renderer_begin_frame() { deletes.clear(); render_passes.clear(); - glBindBuffer( GL_UNIFORM_BUFFER, uniforms ); glBufferData( GL_UNIFORM_BUFFER, UNIFORM_BUFFER_SIZE, NULL, GL_DYNAMIC_DRAW ); uniforms_buffer = ( u8 * ) glMapBuffer( GL_UNIFORM_BUFFER, GL_WRITE_ONLY ); ASSERT( uniforms_buffer != NULL );