We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 26fd9d0 + a477de6 commit 22bfbdeCopy full SHA for 22bfbde
pyopengltk.py
@@ -265,10 +265,9 @@ def tkCreateContext( self ):
265
vis = GLX.glXGetVisualFromFBConfig(self.__window, cfgs[i])
266
if ideal == vis.contents.visualid:
267
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:
+ print("Got a matching visual: index %d %d xid %s"%(
+ best,vis.contents.visualid,hex(ideal) ))
+ if best < 0:
272
print("oh dear - visual does not match" )
273
# Take the first in the list (should be another I guess)
274
best=0
0 commit comments