Made console error handling more robust.
Merge branch 'core'
Properly(?) set framebuffer draw- and read-buffers per FBO, instead of globally.
Merge branch 'core'
Merge remote-tracking branch 'dolda/master'