Expose gl_MaxDrawBuffers to ESSL 3.00 shaders.
Previously was only exposed in ESSL 1.00.
TRAC #23990
Signed-off-by: Geoff Lang
Signed-off-by: Shannon Woods
diff --git a/src/compiler/translator/Initialize.cpp b/src/compiler/translator/Initialize.cpp
index d9766b5..426ea2b 100644
--- a/src/compiler/translator/Initialize.cpp
+++ b/src/compiler/translator/Initialize.cpp
@@ -543,7 +543,7 @@
if (spec != SH_CSS_SHADERS_SPEC)
{
- symbolTable.insertConstInt(ESSL1_BUILTINS, "gl_MaxDrawBuffers", resources.MaxDrawBuffers);
+ symbolTable.insertConstInt(COMMON_BUILTINS, "gl_MaxDrawBuffers", resources.MaxDrawBuffers);
}
symbolTable.insertConstInt(ESSL3_BUILTINS, "gl_MaxVertexOutputVectors", resources.MaxVertexOutputVectors);