diff options
author | Josh Matthews <josh@joshmatthews.net> | 2018-09-21 18:40:49 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-21 18:40:49 -0400 |
commit | 2ea6e9c8131bdd4a9915436a42d9bba2548b475c (patch) | |
tree | d9a38e54c80ef4e7430544ed7ca7c86a0583c59d /components/script/dom/webglrenderbuffer.rs | |
parent | 34385d90aafca94e0e1cac23ddc5aa29a3cdba41 (diff) | |
download | servo-2ea6e9c8131bdd4a9915436a42d9bba2548b475c.tar.gz servo-2ea6e9c8131bdd4a9915436a42d9bba2548b475c.zip |
webgl: Use standard texture format for WebGL-specific DEPTH_STENCIL format.
Diffstat (limited to 'components/script/dom/webglrenderbuffer.rs')
-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() { |