X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fcore%2Funiformblock.cpp;h=952fd2fde0f736bfab861938a0682a411d1e5389;hp=256858580b9721a60663cbc0b80dd282c7a6e7db;hb=HEAD;hpb=2b930a353df652ade5baacae21d5d8a01f37c09d diff --git a/source/core/uniformblock.cpp b/source/core/uniformblock.cpp index 25685858..952fd2fd 100644 --- a/source/core/uniformblock.cpp +++ b/source/core/uniformblock.cpp @@ -23,7 +23,7 @@ void UniformBlock::store(const ReflectData::UniformInfo &info, size_t array_size size_t store_offset; bool packed; - if(info.block->bind_point<0) + if(info.block->bind_point==ReflectData::DEFAULT_BLOCK) { if(info.location<0) return; @@ -79,7 +79,7 @@ void UniformBlock::store(const ReflectData::UniformInfo &info, size_t array_size } } - dirty = true; + mark_dirty(); } void UniformBlock::check_store_range(size_t offs, size_t size)