Skip to content

Commit

Permalink
win32 needs double buffered!
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@2394 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Dec 28, 2012
1 parent bdf257c commit 6bee63c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/xpra/gl/gl_window_backing.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,12 @@ class GLPixmapBacking(PixmapBacking):

def __init__(self, wid, w, h, mmap_enabled, mmap):
PixmapBacking.__init__(self, wid, w, h, mmap_enabled, mmap)
display_mode = (gtk.gdkgl.MODE_RGB | gtk.gdkgl.MODE_SINGLE)
self.glconfig = gtk.gdkgl.Config(mode=display_mode)
display_mode = gtk.gdkgl.MODE_RGB | gtk.gdkgl.MODE_DEPTH | gtk.gdkgl.MODE_DOUBLE
try:
self.glconfig = gtk.gdkgl.Config(mode=display_mode)
except gtk.gdkgl.NoMatches:
display_mode &= ~gtk.gdkgl.MODE_DOUBLE
self.glconfig = gtk.gdkgl.Config(mode=display_mode)
self.glarea = gtk.gtkgl.DrawingArea(self.glconfig)
self.glarea.show()
self.glarea.connect("expose_event", self.gl_expose_event)
Expand Down

0 comments on commit 6bee63c

Please sign in to comment.