]> git.tdb.fi Git - libs/gl.git/commitdiff
Fix an incorrect check for existence of value
authorMikko Rasa <tdb@tdb.fi>
Thu, 11 Nov 2021 11:46:08 +0000 (13:46 +0200)
committerMikko Rasa <tdb@tdb.fi>
Thu, 11 Nov 2021 11:46:08 +0000 (13:46 +0200)
source/glsl/reflect.cpp

index a2f43a9d18418d1941f5709cbc27fa99cfd35c73..32c7c7330d0577fde5c156f90d0e3b9925022518 100644 (file)
@@ -296,7 +296,7 @@ void MemoryRequirementsCalculator::visit(StructDeclaration &strct)
                r_alignment = 1;
                r_offset = -1;
                s->visit(*this);
-               if(r_offset)
+               if(r_offset>=0)
                        total = r_offset;
                total += r_alignment-1;
                total -= total%r_alignment;