diff --git a/arcade/gui/ui_manager.py b/arcade/gui/ui_manager.py index f2e18298f..70a7e670d 100644 --- a/arcade/gui/ui_manager.py +++ b/arcade/gui/ui_manager.py @@ -12,7 +12,6 @@ from typing import List, Dict, TypeVar, Iterable, Optional, Type from pyglet.event import EventDispatcher, EVENT_HANDLED, EVENT_UNHANDLED -from pyglet.math import Mat4 import arcade from arcade.gui.events import ( @@ -267,14 +266,6 @@ def draw(self) -> None: self._do_layout() ctx = self.window.ctx - - # Reset view matrix so content is not rendered into - # the surface with offset - prev_view = self.window.view - prev_proj = self.window.projection - self.window.view = Mat4() - self.window.projection = Mat4() - with ctx.enabled(ctx.BLEND): self._do_render() @@ -285,9 +276,6 @@ def draw(self) -> None: for layer in layers: self._get_surface(layer).draw() - self.window.view = prev_view - self.window.projection = prev_proj - def adjust_mouse_coordinates(self, x, y): """ This method is used, to translate mouse coordinates to coordinates