How to properly use glDiscardFramebufferEXT

Posted by Rafael Spring on Stack Overflow See other posts from Stack Overflow or by Rafael Spring
Published on 2012-08-04T18:17:30Z Indexed on 2012/09/27 3:37 UTC
Read the original article Hit count: 677

This question relates to the OpenGL ES 2.0 Extension EXT_discard_framebuffer.

It is unclear to me which cases justify the use of this extension. If I call glDiscardFramebufferEXT() and it puts the specified attachable images in an undefined state this means that either:
- I don't care about the content anymore since it has been used with glReadPixels() already,
- I don't care about the content anymore since it has been used with glCopyTexSubImage() already,
- I shouldn't have made the render in the first place.

Clearly, only the 1st two cases make sense or are there other cases in which glDiscardFramebufferEXT() is useful? If yes, which are these cases?

© Stack Overflow or respective owner

Related posts about android

Related posts about iphone