From 66cf095b3eeb3f5a37cc16231680a18d67b292fb Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Thu, 11 Nov 2021 13:46:08 +0200 Subject: [PATCH] Fix an incorrect check for existence of value --- source/glsl/reflect.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.43.0