From f46ce2704abf9fd0fcdb9f42c362c33585dd20d1 Mon Sep 17 00:00:00 2001 From: totaam Date: Wed, 25 Oct 2023 22:16:27 +0700 Subject: [PATCH] #2467 split opengl init into a new method --- xpra/client/gl/backing.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/xpra/client/gl/backing.py b/xpra/client/gl/backing.py index e7f18ab04b..2a52e46cb4 100644 --- a/xpra/client/gl/backing.py +++ b/xpra/client/gl/backing.py @@ -295,11 +295,14 @@ def __init__(self, wid : int, window_alpha : bool, pixel_depth : int=0): self.pending_fbo_paint : list[tuple[int,int,int,int]] = [] self.last_flush : float = monotonic() self.last_present_fbo_error : str = "" - + self.bit_depth = pixel_depth super().__init__(wid, window_alpha and self.HAS_ALPHA) + self.opengl_init() + + def opengl_init(self): self.init_gl_config() self.init_backing() - self.bit_depth : int = self.get_bit_depth(pixel_depth) + self.bit_depth : int = self.get_bit_depth(self.bit_depth) self.init_formats() self.draw_needs_refresh : bool = DRAW_REFRESH # the correct check would be this: