Skip to content

Commit

Permalink
#717 just like the cairo version, I believe we need bytes for upload …
Browse files Browse the repository at this point in the history
…and not a memoryview

git-svn-id: https://xpra.org/svn/Xpra/trunk@8078 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Nov 8, 2014
1 parent f8dfe61 commit 1200f62
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/xpra/client/gl/gl_window_backing_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
from xpra.gtk_common.gtk_util import import_gobject
idle_add = import_gobject().idle_add

from xpra.os_util import memoryview_to_bytes
from xpra.codecs.codec_constants import get_subsampling_divs
from xpra.client.window_backing_base import fire_paint_callbacks
from xpra.gtk_common.gtk_util import POINTER_MOTION_MASK, POINTER_MOTION_HINT_MASK
Expand Down Expand Up @@ -480,6 +481,8 @@ def _do_paint_rgb(self, bpp, img_data, x, y, width, height, rowstride, options):
#have to convert buffer to string because we can't handle buffer upload..
if type(img_data)==buffer_type:
img_data = str(img_data)
else:
img_data = memoryview_to_bytes(img_data)
with context:
self.gl_init()
self.set_rgb_paint_state()
Expand Down

0 comments on commit 1200f62

Please sign in to comment.