Basic error reporting
Don't use glInvalidateFramebuffer()

It isn't required while is buggy in Mesa:
https://bugs.freedesktop.org/show_bug.cgi?id=70411