From: Mikko Rasa Date: Thu, 11 Nov 2021 11:46:08 +0000 (+0200) Subject: Fix an incorrect check for existence of value X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=66cf095b3eeb3f5a37cc16231680a18d67b292fb;p=libs%2Fgl.git Fix an incorrect check for existence of value --- diff --git a/source/glsl/reflect.cpp b/source/glsl/reflect.cpp index a2f43a9d..32c7c733 100644 --- a/source/glsl/reflect.cpp +++ b/source/glsl/reflect.cpp @@ -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;