MAX_DRAW_BUFFERS can be queried when
GL_NV_draw_buffers/GL_EXT_draw_buffers is exposed.
Components: AOSP
Affects: dEQP-GLES2.functional.shaders.builtin_variable.max_draw_buffers*
Change-Id: I552ea98c8b6f1db1706858bebac6db1aa3c2640f
{
if (m_varName == "gl_MaxDrawBuffers")
{
- if (m_ctxInfo.isExtensionSupported("GL_EXT_draw_buffers"))
+ if (m_ctxInfo.isExtensionSupported("GL_EXT_draw_buffers") ||
+ m_ctxInfo.isExtensionSupported("GL_NV_draw_buffers"))
return m_ctxInfo.getInt(GL_MAX_DRAW_BUFFERS);
else
return 1;