fixed pyglet bug for AMD video cards