aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webglrenderbuffer.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/webglrenderbuffer.rs')
-rw-r--r--components/script/dom/webglrenderbuffer.rs6
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() {