diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2018-09-23 06:38:27 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-23 06:38:27 -0400 |
commit | 647796ede66ad84acf6239d8b556ee3735bfc6a6 (patch) | |
tree | c6f3f7406cda89b0b32871b501493f34659a1b25 | |
parent | 196bec2b87b0044356e4a4e933d91783d2393bc1 (diff) | |
parent | 2ea6e9c8131bdd4a9915436a42d9bba2548b475c (diff) | |
download | servo-647796ede66ad84acf6239d8b556ee3735bfc6a6.tar.gz servo-647796ede66ad84acf6239d8b556ee3735bfc6a6.zip |
Auto merge of #21784 - servo:jdm-patch-33, r=nox
Use standard buffer format for DEPTH_STENCIL
This makes the Going Home title display for me on my Pixel 2.
---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #21763
- [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/21784)
<!-- Reviewable:end -->
-rw-r--r-- | components/script/dom/webglrenderbuffer.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/webglrenderbuffer.rs b/components/script/dom/webglrenderbuffer.rs index fd85a1b3ec7..9165284257c 100644 --- a/components/script/dom/webglrenderbuffer.rs +++ b/components/script/dom/webglrenderbuffer.rs @@ -122,9 +122,9 @@ impl WebGLRenderbuffer { let actual_format = match internal_format { constants::RGBA4 | constants::DEPTH_COMPONENT16 | - constants::STENCIL_INDEX8 | - // https://www.khronos.org/registry/webgl/specs/latest/1.0/#6.7 - constants::DEPTH_STENCIL => internal_format, + constants::STENCIL_INDEX8 => internal_format, + // https://www.khronos.org/registry/webgl/specs/latest/1.0/#6.8 + constants::DEPTH_STENCIL => WebGl2Constants::DEPTH24_STENCIL8, constants::RGB5_A1 => { // 16-bit RGBA formats are not supported on desktop GL. if is_gles() { |