diff --git a/src/xpra/client/gl/gl_window_backing_base.py b/src/xpra/client/gl/gl_window_backing_base.py index f9af0d01e7..3a57800625 100644 --- a/src/xpra/client/gl/gl_window_backing_base.py +++ b/src/xpra/client/gl/gl_window_backing_base.py @@ -18,7 +18,7 @@ GL_TEXTURE0, GL_TEXTURE1, GL_TEXTURE2, GL_QUADS, GL_LINE_LOOP, GL_LINES, GL_COLOR_BUFFER_BIT, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_BORDER, GL_DONT_CARE, GL_TRUE, GL_DEPTH_TEST, GL_SCISSOR_TEST, GL_LIGHTING, GL_DITHER, - GL_RGB, GL_RGBA, GL_BGR, GL_BGRA, GL_RGBA8, GL_RGB8, GL_RGB10_A2, GL_RGB565, GL_RGB5_A1, GL_RGBA4, + GL_RGB, GL_RGBA, GL_BGR, GL_BGRA, GL_RGBA8, GL_RGB8, GL_RGB10_A2, GL_RGB565, GL_RGB5_A1, GL_RGBA4, GL_RGBA16, GL_UNSIGNED_INT_2_10_10_10_REV, GL_UNSIGNED_INT_10_10_10_2, GL_UNSIGNED_SHORT_5_6_5, GL_BLEND, GL_ONE, GL_ONE_MINUS_SRC_ALPHA, GL_SRC_ALPHA, GL_TEXTURE_MAX_LEVEL, GL_TEXTURE_BASE_LEVEL, @@ -132,6 +132,7 @@ GL_RGB565 : "RGB565", GL_RGB5_A1 : "RGB5_A1", GL_RGBA4 : "RGBA4", + GL_RGBA16 : "GL_RGBA16", } DATATYPE_TO_STR = { GL_UNSIGNED_INT_2_10_10_10_REV : "UNSIGNED_INT_2_10_10_10_REV", @@ -291,7 +292,10 @@ def get_bit_depth(self, pixel_depth=0): def init_formats(self): self.RGB_MODES = list(GLWindowBackingBase.RGB_MODES) - if self.bit_depth==30: + if self.bit_depth>32: + self.internal_format = GL_RGBA16 + self.RGB_MODES.append("r210") + elif self.bit_depth==30: self.internal_format = GL_RGB10_A2 self.RGB_MODES.append("r210") elif self.bit_depth==16: