Fixed wrong color handling in the OpenGL implementation