Skip to content

Commit

Permalink
remove unnecessary imports and use standard glconfig setup code
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@2393 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Dec 28, 2012
1 parent 78814fc commit bdf257c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
5 changes: 1 addition & 4 deletions src/tests/xpra/gl/gl_backing_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,9 @@

import pygtk
pygtk.require('2.0')
import gtk #@UnusedImport
import gtk
import gobject

import gtk.gtkgl #@UnusedImport
import gtk.gdkgl #@UnusedImport

from wimpiggy.log import Logger
log = Logger()

Expand Down
8 changes: 6 additions & 2 deletions src/tests/xpra/gl/gl_simple_backing.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@
class GLTestBacking(object):

def __init__(self, wid, w, h, mmap_enabled, mmap):
display_mode = (gtk.gdkgl.MODE_RGB | gtk.gdkgl.MODE_SINGLE)
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:
Expand Down Expand Up @@ -119,4 +123,4 @@ def gl_expose_event(self, glarea, event):

def do_gl_paint(self, x, y, w, h, img_data, rowstrides, pixel_format, callbacks):
#pretend we did something
self.fire_paint_callbacks(callbacks, True)
pass

0 comments on commit bdf257c

Please sign in to comment.