Daniel's patch to fix colors in OpenGL canvas