Partially re-enable GL_EXT_discard_framebuffer extension

Modify function to avoid invalidating colour component of valid
frame buffer (it causes distortion/occasional crashes in Kit Kat).

Change-Id: I1bc5415fc1b18563dd301b274aa77d4411d47a67