Skip to content

Fix tex-new-formats to reflect WebGL2 sRGB semantics#745

Merged
bjacob merged 1 commit into
KhronosGroup:masterfrom
bjacob:fix-new-formats-test-for-srgb
Oct 10, 2014
Merged

Fix tex-new-formats to reflect WebGL2 sRGB semantics#745
bjacob merged 1 commit into
KhronosGroup:masterfrom
bjacob:fix-new-formats-test-for-srgb

Conversation

@bjacob
Copy link
Copy Markdown
Contributor

@bjacob bjacob commented Oct 10, 2014

I didn't realize this when I wrote this test, but this is a substantial difference between WebGL2 (i.e. ES 3) and the old EXT_sRGB. In WebGL2 / ES3, there is not even a SRGB_ALPHA constant. Instead, people are expected to use RGB and RGBA for format. In other words, WebGL2 / ES3 does not have 1:1 mapping between sized formats, and (unsized format, type) pairs. The (RGBA, UNSIGNED_BYTE) pair corresponds to both plain old RGBA8, and to SRGB8_ALPHA8.

bjacob added a commit that referenced this pull request Oct 10, 2014
Fix tex-new-formats to reflect WebGL2 sRGB semantics
@bjacob bjacob merged commit 8c6f8cb into KhronosGroup:master Oct 10, 2014
@kenrussell
Copy link
Copy Markdown
Member

Good catch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants