Commit cd8f189f authored by zmo@chromium.org's avatar zmo@chromium.org

Set MaxDrawBuffers to 1 if WEBGL_draw_buffers is not enabled in WebGL.

BUG=
TEST=webgl conformance tests
R=bajones@chromium.org, kbr@chromium.org

Review URL: https://codereview.chromium.org/23464034

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@221316 0039d316-1c4b-4281-b951-d872f2087c98
parent 376c7002
......@@ -2483,6 +2483,8 @@ bool GLES2DecoderImpl::InitializeShaderTranslator() {
resources.OES_standard_derivatives = derivatives_explicitly_enabled_;
resources.EXT_frag_depth = frag_depth_explicitly_enabled_;
resources.EXT_draw_buffers = draw_buffers_explicitly_enabled_;
if (!draw_buffers_explicitly_enabled_)
resources.MaxDrawBuffers = 1;
} else {
resources.OES_standard_derivatives =
features().oes_standard_derivatives ? 1 : 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment