mirror of
https://github.com/servo/servo.git
synced 2025-07-05 22:43:40 +01:00
webgl: Use standard texture format for WebGL-specific DEPTH_STENCIL format.
This commit is contained in:
parent
34385d90aa
commit
2ea6e9c813
1 changed files with 3 additions and 3 deletions
|
@ -122,9 +122,9 @@ impl WebGLRenderbuffer {
|
||||||
let actual_format = match internal_format {
|
let actual_format = match internal_format {
|
||||||
constants::RGBA4 |
|
constants::RGBA4 |
|
||||||
constants::DEPTH_COMPONENT16 |
|
constants::DEPTH_COMPONENT16 |
|
||||||
constants::STENCIL_INDEX8 |
|
constants::STENCIL_INDEX8 => internal_format,
|
||||||
// https://www.khronos.org/registry/webgl/specs/latest/1.0/#6.7
|
// https://www.khronos.org/registry/webgl/specs/latest/1.0/#6.8
|
||||||
constants::DEPTH_STENCIL => internal_format,
|
constants::DEPTH_STENCIL => WebGl2Constants::DEPTH24_STENCIL8,
|
||||||
constants::RGB5_A1 => {
|
constants::RGB5_A1 => {
|
||||||
// 16-bit RGBA formats are not supported on desktop GL.
|
// 16-bit RGBA formats are not supported on desktop GL.
|
||||||
if is_gles() {
|
if is_gles() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue