sync pyglet update

This commit is contained in:
shenjack 2023-05-23 21:04:32 +08:00
parent 567674ae7a
commit 753c11cc7c
2 changed files with 5 additions and 2 deletions

View File

@ -400,6 +400,7 @@ class Sprite(event.EventDispatcher):
self._group.blend_dest,
self._group.program,
group)
if self._batch is not None:
self._batch.migrate(self._vertex_list, GL_TRIANGLES, self._group, self._batch)
@property

View File

@ -1799,7 +1799,9 @@ class FPSDisplay:
usage is to create an `FPSDisplay` for each window, and draw the display
at the end of the windows' :py:meth:`~pyglet.window.Window.on_draw` event handler::
window = pyglet.window.Window()
from pyglet.window import Window, FPSDisplay
window = Window()
fps_display = FPSDisplay(window)
@window.event