From: Mikko Rasa Date: Wed, 17 Nov 2021 13:37:00 +0000 (+0200) Subject: Only use location-based offsets for the default uniform block X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=c8e122dc5c859c72ff98840477adbd263fe914c3;p=libs%2Fgl.git Only use location-based offsets for the default uniform block The push constant block must follow the layout specified in the shader. --- diff --git a/source/core/uniformblock.cpp b/source/core/uniformblock.cpp index 25685858..ebaed2a6 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;