Skip to content

Comments

Avoid asserting in glReadPixels for unsupported types, return GL_INVALID_ENUM instead#2603

Closed
JasonGreen wants to merge 1 commit intoemscripten-core:incomingfrom
JasonGreen:master
Closed

Avoid asserting in glReadPixels for unsupported types, return GL_INVALID_ENUM instead#2603
JasonGreen wants to merge 1 commit intoemscripten-core:incomingfrom
JasonGreen:master

Conversation

@JasonGreen
Copy link
Contributor

We should never assert in any GL code.

@JasonGreen JasonGreen changed the title Avoid asserting in glReadPixels for unsupported formats, return GL_INVALID_ENUM instead Avoid asserting in glReadPixels for unsupported types, return GL_INVALID_ENUM instead Jul 30, 2014
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

{ should go on the same line with the if.

@JasonGreen
Copy link
Contributor Author

Updated to conform with coding style

@juj juj added the GL label Aug 6, 2014
@juj juj self-assigned this Aug 6, 2014
@juj
Copy link
Collaborator

juj commented Aug 6, 2014

Hey, revisiting this, I realize that I want to handle this a bit differently instead, that is forward-compatible with WebGL 2 and further. I pushed in this commit: 0d214a1 . I'll close this pull request, but let me know if something is off in that commit!

@juj juj closed this Aug 6, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants