Skip to content

Help with creating a framebuffer. #232

Closed Answered by greggman
David-Orangemoon asked this question in Q&A
Discussion options

You must be logged in to vote

It's not clear what you're trying to do but there's no such thing as type: gl.RGBA4 which means you're getting INVALID_ENUM when the texture is created. Change it to type: gl.UNSIGNED_BYTE

Adding webgl-lint might help find these kinds of errors.

https://github.com/greggman/webgl-lint

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@David-Orangemoon
Comment options

Answer selected by David-Orangemoon
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants