X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fpipelinestate.cpp;h=21cb64f9f51bb88c5f7ccd02b4a5f65fb4006daf;hb=e92de029768eef5f0fd744329e589161b46d0762;hp=f855eed61e012c35d86775c32e5a8f1c6ce51a16;hpb=3e38e8a7bfffb0b6d622b849b402f4f04a7536c4;p=libs%2Fgl.git diff --git a/source/core/pipelinestate.cpp b/source/core/pipelinestate.cpp index f855eed6..21cb64f9 100644 --- a/source/core/pipelinestate.cpp +++ b/source/core/pipelinestate.cpp @@ -281,11 +281,10 @@ void PipelineState::apply(unsigned mask) const { const BufferBackedUniformBlock *block = static_cast(i->block); glBindBufferRange(GL_UNIFORM_BUFFER, i->binding, block->get_buffer()->get_id(), block->get_offset(), block->get_data_size()); + bound_uniform_blocks[i->binding] = 1; } else static_cast(i->block)->apply(); - - bound_uniform_blocks[i->binding] = 1; } i->changed = false;