From 8e5f1ac954d0edf83092f5d4a97bb99fd8076c5c Mon Sep 17 00:00:00 2001 From: Greg Fischer Date: Thu, 7 Jul 2022 11:40:02 -0600 Subject: [PATCH] Fix getEnhancedMsgs to work when HLSL not enabled Fixes #2969 --- glslang/MachineIndependent/localintermediate.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glslang/MachineIndependent/localintermediate.h b/glslang/MachineIndependent/localintermediate.h index 581e9aa2e..d3e86f9e1 100644 --- a/glslang/MachineIndependent/localintermediate.h +++ b/glslang/MachineIndependent/localintermediate.h @@ -480,7 +480,7 @@ public: { enhancedMsgs = true; } - bool getEnhancedMsgs() const { return enhancedMsgs && source == EShSourceGlsl; } + bool getEnhancedMsgs() const { return enhancedMsgs && getSource() == EShSourceGlsl; } #ifdef ENABLE_HLSL void setSource(EShSource s) { source = s; }