Restore vertex array state after drawing text.
Restore vertex array state after drawing text.


Index: pyglet/font/__init__.py
===================================================================
--- pyglet/font/__init__.py	(revision 771)
+++ pyglet/font/__init__.py	(working copy)
@@ -184,6 +184,7 @@
         if to_index is None:
             to_index = len(self.text)

+        glPushClientAttrib(GL_CLIENT_VERTEX_ARRAY_BIT)
         glInterleavedArrays(GL_T2F_V3F, 0, self.array)
         for state_from, state_length, texture in self.states:
             if state_from + state_length < from_index:
@@ -194,6 +195,7 @@
                 break
             glBindTexture(GL_TEXTURE_2D, texture.id)
             glDrawArrays(GL_QUADS, state_from * 4, state_length * 4)
+        glPopClientAttrib()

         if from_index:
             glPopMatrix()

qbektrix/pyglet,mpasternak/michaldtz-fixes-518-522,kmonsoor/pyglet,odyaka341/pyglet,mpasternak/pyglet-fix-issue-552,kmonsoor/pyglet,Austin503/pyglet,kmonsoor/pyglet,gdkar/pyglet,cledio66/pyglet,xshotD/pyglet,cledio66/pyglet,qbektrix/pyglet,qbektrix/pyglet,mpasternak/pyglet-fix-issue-552,arifgursel/pyglet,odyaka341/pyglet,Austin503/pyglet,google-code-export/pyglet,xshotD/pyglet,cledio66/pyglet,Alwnikrotikz/pyglet,mpasternak/michaldtz-fix-552,google-code-export/pyglet,mpasternak/michaldtz-fix-552,Austin503/pyglet,shaileshgoogler/pyglet,Alwnikrotikz/pyglet,Alwnikrotikz/pyglet,gdkar/pyglet,mpasternak/michaldtz-fixes-518-522,mpasternak/pyglet-fix-issue-518-522,Alwnikrotikz/pyglet,mpasternak/michaldtz-fix-552,arifgursel/pyglet,xshotD/pyglet,arifgursel/pyglet,shaileshgoogler/pyglet,gdkar/pyglet,xshotD/pyglet,mpasternak/michaldtz-fixes-518-522,qbektrix/pyglet,arifgursel/pyglet,shaileshgoogler/pyglet,cledio66/pyglet,Alwnikrotikz/pyglet,Austin503/pyglet,mpasternak/michaldtz-fix-552,cledio66/pyglet,qbektrix/pyglet,google-code-export/pyglet,mpasternak/michaldtz-fixes-518-522,mpasternak/pyglet-fix-issue-518-522,mpasternak/pyglet-fix-issue-518-522,shaileshgoogler/pyglet,kmonsoor/pyglet,mpasternak/pyglet-fix-issue-552,mpasternak/pyglet-fix-issue-552,google-code-export/pyglet,odyaka341/pyglet,arifgursel/pyglet,kmonsoor/pyglet,xshotD/pyglet,Austin503/pyglet,odyaka341/pyglet,google-code-export/pyglet,mpasternak/pyglet-fix-issue-518-522,shaileshgoogler/pyglet,gdkar/pyglet,gdkar/pyglet,odyaka341/pyglet