xpra icon
Bug tracker and wiki

This bug tracker and wiki are being discontinued
please use https://github.com/Xpra-org/xpra instead.


Changes between Version 1 and Version 2 of Ticket #372, comment 13


Ignore:
Timestamp:
07/28/13 08:16:05 (8 years ago)
Author:
Antoine Martin
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #372, comment 13

    v1 v2  
    1313     def gl_paint_planar(self, img, x, y, enc_width, enc_height, width, height, callbacks):
    1414         #this function runs in the UI thread, no video_decoder lock held
    15 @@ -426,7 +427,7 @@
    16              glActiveTexture(texture)
    17              glBindTexture(GL_TEXTURE_RECTANGLE_ARB, self.textures[index])
    18              glPixelStorei(GL_UNPACK_ROW_LENGTH, rowstrides[index])
    19 -            pixel_data = img_data[index]
    20 +            pixel_data = img_data[index][:]
    21              debug("texture %s: div=%s, rowstride=%s, %sx%s, data=%s bytes", index, divs[index], rowstrides[index], width/div_w, height/div_h, len(pixel_data))
    22              glTexSubImage2D(GL_TEXTURE_RECTANGLE_ARB, 0, x, y, width/div_w, height/div_h, GL_LUMINANCE, GL_UNSIGNED_BYTE, pixel_data)
    23              if index == 1:
    2415}}}
    2516