Skip to content

Commit

Permalink
fix(webgl): webgl1 depth texture
Browse files Browse the repository at this point in the history
  • Loading branch information
stwind committed Nov 30, 2019
1 parent 0277b16 commit 5c86165
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/webgl/src/api/texture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,12 @@ export const TEX_FORMATS: IObjectOf<TextureFormatDecl> = {
true,
true
),
[TextureFormat.DEPTH_COMPONENT]: $(
TextureFormat.DEPTH_COMPONENT,
[TextureType.UNSIGNED_SHORT, 2, TextureType.UNSIGNED_INT, 4],
1,
true
),
[TextureFormat.DEPTH_COMPONENT16]: $(
TextureFormat.DEPTH_COMPONENT,
[TextureType.UNSIGNED_SHORT, 2, TextureType.UNSIGNED_INT, 4],
Expand Down

0 comments on commit 5c86165

Please sign in to comment.