Fix getEnhancedMsgs to work when HLSL not enabled

Fixes #2969
This commit is contained in:
Greg Fischer 2022-07-07 11:40:02 -06:00
parent b2d2c9dd3d
commit 8e5f1ac954

View File

@ -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; }