Chromium Code Reviews
DescriptionClean up multisampled color mask workaround for DrawingBuffer.
On old AMD GPUs, glColorMask() doesn't work correctly for multisampled
renderbuffers. The old workaround used a GL_RGB renderbuffer, resolved to a
GL_RGBA renderbuffer, and then blitted to the destination texture (GL_RGBA).
The new workaround uses glColorMask() with a GL_RGBA renderbuffer. On GPUs where
glColorMask() doesn't work correctly, the alpha channel of the destination
texture is cleared to 1 after the resolve. On all other GPUs, no additional
clear is necessary.
BUG=595948
Committed: https://crrev.com/824f8b72a0ecde812abe61c0582f0f57bd230d6e
Cr-Commit-Position: refs/heads/master@{#391902}
Patch Set 1 #Patch Set 2 : #Patch Set 3 : Fix bug. #
Total comments: 2
Patch Set 4 : Comments from kbr and fix up a conditional. #
Depends on Patchset: Messages
Total messages: 10 (4 generated)
|
||||||||||||||||||||||||||||