Skip to content

Commit

Permalink
Re-add deprecated L8 anbd LA8 formats to WebGL2 removed by mistake (#…
Browse files Browse the repository at this point in the history
…6649)

Co-authored-by: Martin Valigursky <mvaligursky@snapchat.com>
  • Loading branch information
mvaligursky and Martin Valigursky committed Jun 3, 2024
1 parent 55a3ff8 commit 9b11cd2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/platform/graphics/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -952,6 +952,8 @@ export const pixelFormatInfo = new Map([
// float formats
[PIXELFORMAT_A8, { name: 'A8', size: 1 }],
[PIXELFORMAT_R8, { name: 'R8', size: 1 }],
[PIXELFORMAT_L8, { name: 'L8', size: 1 }],
[PIXELFORMAT_LA8, { name: 'LA8', size: 2 }],
[PIXELFORMAT_RG8, { name: 'RG8', size: 2 }],
[PIXELFORMAT_RGB565, { name: 'RGB565', size: 2 }],
[PIXELFORMAT_RGBA5551, { name: 'RGBA5551', size: 2 }],
Expand Down

0 comments on commit 9b11cd2

Please sign in to comment.