[Webkit-unassigned] [Bug 218185] WebGL2 clearBuffer results are lost if drawing buffer is pending a clear in certain cases
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Nov 18 23:51:51 PST 2020
https://bugs.webkit.org/show_bug.cgi?id=218185
--- Comment #3 from Kimmo Kinnunen <kkinnunen at apple.com> ---
Yeah, scissor enable.
void WebGL2RenderingContext::clearBufferiv(GCGLenum buffer, GCGLint drawbuffer, Int32List&& values, GCGLuint srcOffset)
{
if (isContextLostOrPending() || !validateClearBuffer("clearBufferiv", buffer, values.length(), srcOffset))
return;
m_context->clearBufferiv(buffer, drawbuffer, values.data(), srcOffset);
updateBuffersToAutoClear(ClearBufferCaller::ClearBufferiv, buffer, drawbuffer);
}
void WebGL2RenderingContext::updateBuffersToAutoClear(ClearBufferCaller caller, GCGLenum buffer, GCGLint drawbuffer)
{
// This method makes sure that we don't auto-clear any buffers which the
// user has manually cleared using the new ES 3.0 clearBuffer* APIs.
// If the user has a framebuffer bound, don't update the auto-clear
// state of the built-in back buffer.
if (m_framebufferBinding)
return;
// If the scissor test is on, assume that we can't short-circuit
// these clears.
if (m_scissorEnabled)
return;
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20201119/56971ada/attachment-0001.htm>
More information about the webkit-unassigned
mailing list