From 2ea6e9c8131bdd4a9915436a42d9bba2548b475c Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Fri, 21 Sep 2018 18:40:49 -0400 Subject: webgl: Use standard texture format for WebGL-specific DEPTH_STENCIL format. --- components/script/dom/webglrenderbuffer.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'components/script/dom/webglrenderbuffer.rs') 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() { -- cgit v1.2.3