Tuesday, August 19, 2008

wxwidgets wxglcanvas flicker

I'm not sure what update (drivers, wx) it was but somehow my wxglcanvas apps
started flickering badly. The cube and penguin sample programs did as well.
After some digging around i stumbled over WX_GL_DOUBLEBUFFER and that helped.
Needs to be passed to the constructor: http://docs.wxwidgets.org/2.8/wx_wxglcanvas.html

So now I have this: int Canvas::attribs[2]={WX_GL_DOUBLEBUFFER,0};
as a static member and pass it:
): wxGLCanvas(parent,-1,pos,size,wxWANTS_CHARS,name,attribs)

problem solved.

0 Comments:

Post a Comment

<< Home