From badf3f3d03c85375fb11b5e7d8c3c806699a370d Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Tue, 12 Mar 2013 15:06:37 +0000 Subject: [PATCH] we need to tell opengl which textures we want! (and not rely on what was last set!) git-svn-id: https://xpra.org/svn/Xpra/trunk@2941 3bb7dfac-3a0b-4e04-842a-767bc560f471 --- src/xpra/gl/gl_window_backing.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/xpra/gl/gl_window_backing.py b/src/xpra/gl/gl_window_backing.py index 49d0ccc58a..f938e55ad5 100644 --- a/src/xpra/gl/gl_window_backing.py +++ b/src/xpra/gl/gl_window_backing.py @@ -243,6 +243,10 @@ def render_image(self, rx, ry, rw, rh): return divs = self.get_subsampling_divs(self.pixel_format) glEnable(GL_FRAGMENT_PROGRAM_ARB) + for texture, index in ((GL_TEXTURE0, 0), (GL_TEXTURE1, 1), (GL_TEXTURE2, 2)): + glActiveTexture(texture) + glBindTexture(GL_TEXTURE_RECTANGLE_ARB, self.textures[index]) + glBegin(GL_QUADS) for x,y in ((rx, ry), (rx, ry+rh), (rx+rw, ry+rh), (rx+rw, ry)): for texture, index in ((GL_TEXTURE0, 0), (GL_TEXTURE1, 1), (GL_TEXTURE2, 2)):