commit 9d39dc6fdc489d0d22f62f9cdb0b04b46a4b85fa
parent 795f836126f2fed1cec1e4844aa7472c6e4ec758
Author: Michael Savage <mikejsavage@gmail.com>
Date: Fri, 2 Aug 2019 17:33:28 +0300
Use binding.ubo
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/renderer.cc b/renderer.cc
@@ -170,7 +170,7 @@ static void set_render_state( const RenderState & state ) {
for( size_t j = 0; j < state.num_uniforms; j++ ) {
UniformBinding binding = state.uniforms[ j ].binding;
if( state.uniforms[ j ].name_hash == state.shader->uniforms[ i ] && binding.size > 0 ) {
- glBindBufferRange( GL_UNIFORM_BUFFER, i, uniforms, binding.offset, binding.size );
+ glBindBufferRange( GL_UNIFORM_BUFFER, i, binding.ubo, binding.offset, binding.size );
found = true;
break;
}