Skip to content

Commit

Permalink
must have a valid gl context to call cleanup functions
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Apr 2, 2024
1 parent 8d3b4ed commit 8e9c4fd
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions xpra/client/gl/gl_window_backing_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -620,8 +620,11 @@ def close_gl_config(self) -> None:
"""

def close(self) -> None:
self.with_gl_context(self.close_gl)
super().close()

def close_gl(self, context):
self.free_cuda_context()
self.close_gl_config()
#This seems to cause problems, so we rely
#on destroying the context to clear textures and fbos...
#if self.offscreen_fbo is not None:
Expand All @@ -634,8 +637,7 @@ def close(self) -> None:
if b:
self._backing = None
b.destroy()
super().close()

self.close_gl_config()

def paint_scroll(self, scroll_data, options, callbacks) -> None: #pylint: disable=arguments-differ, arguments-renamed
flush = options.intget("flush", 0)
Expand Down

0 comments on commit 8e9c4fd

Please sign in to comment.