You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey! Thank you for bringing this up :) Unfortunately, I’m not a WebGL expert. But it seems to me that this extension is specific to WebGL 1.0 and mentioned in the spec with this value:
The texImage2D entry point is extended to accept the format parameter DEPTH_COMPONENT and DEPTH_STENCIL
Do you think you may get the error because you’re using WebGL 2.0? It would also help if you could bring the full code code sample to the issue.
pepelsbey
removed
the
needs triage
Triage needed by staff and/or partners. Automatically applied when an issue is opened.
label
Nov 14, 2023
MDN URL
https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_depth_texture
What specific section or headline is this issue about?
Examples
What information was incorrect, unhelpful, or incomplete?
The example code calls
which will throw a
gl.INVALID_VALUE
.What did you expect to see?
The code should be modified by replacing the first
gl.DEPTH_COMPONENT
withgl.DEPTH_COMPONENT16
.Do you have any supporting links, references, or citations?
No response
Do you have anything more you want to share?
No response
MDN metadata
Page report details
en-us/web/api/webgl_depth_texture
The text was updated successfully, but these errors were encountered: