How Can I Determine The Max Allowable Wx_gl_depth_size For A Wx Glcanvas?
I am creating a wx.Frame with a GLCanvas. On some platforms, setting the WX_GL_DEPTH_SIZE attribute of the canvas to 32 works fine. On another platform, I just get a blank frame
Solution 1:
Are you running Linux? Perhaps you could get that information from the table of display modes that glxinfo -t
outputs.
Solution 2:
The only solution I found is to use GLCanvas method IsDiplaySupported
, however it seems that this method is available in wxPython 2.9 and not older versions.
Post a Comment for "How Can I Determine The Max Allowable Wx_gl_depth_size For A Wx Glcanvas?"