Skip to content

Commit

Permalink
#2467 split opengl init into a new method
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Oct 25, 2023
1 parent 2c9aa66 commit f46ce27
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions xpra/client/gl/backing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f46ce27

Please sign in to comment.