Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upImplement WebGL2RenderingContext.invalidateFramebuffer and invalidateSubFramebuffer #20529
Labels
Comments
|
This might be tricky on Mac, because the underlying glInvalidateSubFramebuffer doesn't exist:
|
|
https://searchfox.org/mozilla-central/rev/f1f75f0a2d995241fbc454edfab4be1064c544e1/dom/canvas/WebGL2ContextFramebuffers.cpp#232-240 says "Some drivers (like OSX 10.9 GL) just don't support invalidate_framebuffer." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Like with #20528, this needs to handle the
GL_MAX_COLOR_ATTACHMENTSlimit properly.https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.4
https://www.khronos.org/registry/OpenGL-Refpages/es3.0/html/glInvalidateFramebuffer.xhtml
https://www.khronos.org/registry/OpenGL-Refpages/es3.0/html/glInvalidateSubFramebuffer.xhtml