/ WebKit Public
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apply implicit clears and clearBuffer commands in proper order
https://bugs.webkit.org/show_bug.cgi?id=241765 Patch by Alexey Knyazev <firstname.lastname@example.org> 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
Showing 1 changed file with 20 additions and 12 deletions.