mirror of
https://github.com/servo/servo.git
synced 2025-09-30 00:29:14 +01:00
Auto merge of #24386 - jdm:no-preserve-drawing-buffer, r=nox
webgl: Clear the drawing buffer when preserveDrawingBuffer is false. This adds an explicit clear operation to a webgl canvas when the preserveDrawingBuffer attribute is false when creating the context. Because we're not using double buffering this may end up making some demos worse (ie. a clear operation at a random time while drawing a frame), but this problem is expected to go away when #24256 is fixed and we move to a multi-buffered frame setup. This change is important at this time because so many babylon.js demos rely on the engine clearing the frame, per the specification. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #21132 - [x] There are tests for these changes <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/24386) <!-- Reviewable:end -->
This commit is contained in:
commit
ab8d99856e
8 changed files with 155 additions and 103 deletions
|
@ -1,2 +0,0 @@
|
|||
[context-creation.html]
|
||||
expected: TIMEOUT
|
Loading…
Add table
Add a link
Reference in a new issue