Counterpart of RenderTexture.DiscardContents() for framebuffer?

Hi,

This is called Framebuffer Invalidation (glInvalidateFramebuffer()) in OpenGL ES. While we can do this for RenderTexture, can we do it for the system provided framebuffer?

I managed to reduce the warnings of “RenderTexture color surface was not cleared/discarded” to 1 by

  • Insert DiscardContents() for target RenderTexture before Blit().
  • All cameras clear color.
    , but I can’t go further to remove that 1 warning.

Thanks!

Made it with RenderTexture.active.