OpenGL2: Fix for "unsupported framebuffer format" bug