Automatic handling of screen FBOs breaks readPixels() for user-provided FBO #4643

Closed
codeanticode opened this Issue Aug 30, 2016 · 1 comment

Comments

Projects
None yet
1 participant
@codeanticode
Member

codeanticode commented Aug 30, 2016

The logic in PGraphicsOpenGL.beginPixelsOp(), meant to ensure that the correct FBO is always bound when reading pixels from the screen or offscreen PGraphics surface, has as side effect that the reading pixels from an user-provided Framebuffer is broken, since a FBO backing the PGraphics is set regardless. In particular, this breaks loadPixels() in the GLVideo library: gohai/processing-glvideo#5

@codeanticode codeanticode added the opengl label Aug 30, 2016

@codeanticode codeanticode self-assigned this Aug 30, 2016

@codeanticode

This comment has been minimized.

Show comment
Hide comment
@codeanticode

codeanticode Aug 30, 2016

Member

Fixed with f685491

Member

codeanticode commented Aug 30, 2016

Fixed with f685491

@codeanticode codeanticode referenced this issue in gohai/processing-glvideo Aug 30, 2016

Closed

Implement loadPixels() #5

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