Attempting to get to bottom of invalid FB operation.

Added new diagnostic tests.
GL macro now flushes the stream.
All OpenGL calls are now surrounded by GL macro.

This is to detect *any* OpenGL errors immediately.