commit 60af370681aa2b444297b5994236baee7f0c430e parent e6789fad605b89775038314ea35828f43a39f6ee Author: Michael Savage <mikejsavage@gmail.com> Date: Sat Nov 5 12:43:09 +0200 ub -> ubo Diffstat:
renderer.cc | | | 8 | ++++---- |
diff --git a/renderer.cc b/renderer.cc @@ -88,15 +88,15 @@ IB renderer_new_ib( const void * data, size_t len, BufferUsage usage ) { } UB renderer_new_ub( const void * data, size_t len ) { - GLuint ub; - glGenBuffers( 1, &ub ); + GLuint ubo; + glGenBuffers( 1, &ubo ); if( data != NULL ) { - glBindBuffer( GL_UNIFORM_BUFFER, ub ); + glBindBuffer( GL_UNIFORM_BUFFER, ubo ); glBufferData( GL_UNIFORM_BUFFER, len, data, GL_DYNAMIC_DRAW ); } - return checked_cast< UB >( ub ); + return checked_cast< UB >( ubo ); } void renderer_ub_data( UB ub, const void * data, size_t len ) {