Skip to content

Commit 22bfbde

Browse files
committed
Merge branch 'master' of https://github.com/jonwright/pyopengltk
2 parents 26fd9d0 + a477de6 commit 22bfbde

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

pyopengltk.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -265,10 +265,9 @@ def tkCreateContext( self ):
265265
vis = GLX.glXGetVisualFromFBConfig(self.__window, cfgs[i])
266266
if ideal == vis.contents.visualid:
267267
best = i
268-
# print(type(vis.contents.visualid))
269-
if best >= 0:
270-
print("Got a matching visual: index %d xid %s"%(best,hex(ideal) ))
271-
else:
268+
print("Got a matching visual: index %d %d xid %s"%(
269+
best,vis.contents.visualid,hex(ideal) ))
270+
if best < 0:
272271
print("oh dear - visual does not match" )
273272
# Take the first in the list (should be another I guess)
274273
best=0

0 commit comments

Comments
 (0)