Added missing reset on performance counters.
Added option for enabling OpenGL debugging.
Almost works
Works modulo blending equations.