Skip to content

Commit

Permalink
webgl: Use standard texture format for WebGL-specific DEPTH_STENCIL f…
Browse files Browse the repository at this point in the history
…ormat.
  • Loading branch information
jdm committed Sep 21, 2018
1 parent 34385d9 commit 2ea6e9c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/script/dom/webglrenderbuffer.rs
Expand Up @@ -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() {
Expand Down

0 comments on commit 2ea6e9c

Please sign in to comment.