Skip to content

Commit

Permalink
we need to tell opengl which textures we want! (and not rely on what …
Browse files Browse the repository at this point in the history
…was last set!)

git-svn-id: https://xpra.org/svn/Xpra/trunk@2941 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Mar 12, 2013
1 parent e24ccae commit badf3f3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/xpra/gl/gl_window_backing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)):
Expand Down

0 comments on commit badf3f3

Please sign in to comment.