Skip to content

Commit

Permalink
#1309 make it possible to force the high bit depth code path using th…
Browse files Browse the repository at this point in the history
…e XPRA_FORCE_HIGH_BIT_DEPTH=1 env var

git-svn-id: https://xpra.org/svn/Xpra/trunk@16298 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Jul 12, 2017
1 parent 9d394cb commit ffccf54
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/xpra/client/gl/gl_window_backing_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
SCROLL_ENCODING = envbool("XPRA_SCROLL_ENCODING", True)
PAINT_FLUSH = envbool("XPRA_PAINT_FLUSH", True)
HIGH_BIT_DEPTH = envbool("XPRA_HIGH_BIT_DEPTH", True)
FORCE_HIGH_BIT_DEPTH = envbool("XPRA_FORCE_HIGH_BIT_DEPTH", False)

CURSOR_IDLE_TIMEOUT = envint("XPRA_CURSOR_IDLE_TIMEOUT", 6)
TEXTURE_CURSOR = envbool("XPRA_OPENGL_TEXTURE_CURSOR", False)
Expand Down Expand Up @@ -233,7 +234,7 @@ def __init__(self, wid, window_alpha):
self.bit_depth = self.glconfig.get_depth()
else:
self.bit_depth = 24
if self.bit_depth==30 and HIGH_BIT_DEPTH:
if FORCE_HIGH_BIT_DEPTH or (self.bit_depth==30 and HIGH_BIT_DEPTH):
self.texture_pixel_format = GL_RGBA
self.internal_format = GL_RGB10_A2
if "r210" not in GLWindowBackingBase.RGB_MODES:
Expand Down

0 comments on commit ffccf54

Please sign in to comment.