Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Apply implicit clears and clearBuffer commands in proper order
https://bugs.webkit.org/show_bug.cgi?id=241765 Patch by Alexey Knyazev <3479527+lexaknyazev@users.noreply.github.com> on 2022-06-21 Reviewed by Kimmo Kinnunen. Merging clearBuffer comamnds with implicit clears was producing incorrect results, especially with enabled scissor test. To resolve that, treat clearBuffer commands as draw calls, i.e., apply implicit clears before them and notify the canvas after, if needed. It may be possible to reintroduce merged and/or skipped clears provided that such an optimization does not break any tests. See conformance2/rendering/clearbuffer-and-draw.html * Source/WebCore/html/canvas/WebGL2RenderingContext.cpp: (WebCore::WebGL2RenderingContext::clearBufferiv): (WebCore::WebGL2RenderingContext::clearBufferuiv): (WebCore::WebGL2RenderingContext::clearBufferfv): (WebCore::WebGL2RenderingContext::clearBufferfi): Canonical link: https://commits.webkit.org/251689@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@295684 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information