Commit 3e6a61fe by Jamie Madill

D3D11: Fix nullptr dereference from bad merge.

f1ca5288 was a cherry-pick that was merged incorrectly after some conflicts. This was causing a very serious crasher in Chrome. BUG=chromium:730126 BUG=chromium:735986 Change-Id: I82a48c25d604e1088800cb870297ccfef5915fc5 Reviewed-on: https://chromium-review.googlesource.com/544541Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
parent f1ca5288
...@@ -370,8 +370,8 @@ gl::Error Clear11::clearFramebuffer(const ClearParameters &clearParams, ...@@ -370,8 +370,8 @@ gl::Error Clear11::clearFramebuffer(const ClearParameters &clearParams,
{ {
const gl::FramebufferAttachment &attachment = colorAttachments[colorAttachmentIndex]; const gl::FramebufferAttachment &attachment = colorAttachments[colorAttachmentIndex];
if (clearParams.clearColor[colorAttachmentIndex] && attachment.isAttached() && if (!clearParams.clearColor[colorAttachmentIndex] || !attachment.isAttached() ||
drawBufferStates[colorAttachmentIndex] != GL_NONE) drawBufferStates[colorAttachmentIndex] == GL_NONE)
{ {
continue; continue;
} }
......
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