Implemented ARB_invalidate_subdata GL 4.3 extension.

Framebuffer invalidation is also available in OpenGL ES 3.0 and ES 2.0
using EXT_discard_framebuffer extension.