Hi all,
I'm not sure where the difference is here between my desktop (debian
etch running xinerama on 2 nvidia cards) and laptop (debian lenny
running etch on a radeon card), but somehow Wx::GLCanvas doesn't come
out double-buffered by default on my desktop.
These are all the same on both machines:
Wx => 0.86
Wx::wxVERSION => 2.006003 # also tried with 2.8.7
Wx::GLCanvas => 0.07
OpenGL => 0.54, 0.56 # 0.57 won't build
And there are probably ten or so other factors involved, but I've found
that I can do this in GLCanvas.xs and get a double-buffered canvas, so
I'm not sure who is at fault or what needs to change:
int attrib[] = {WX_GL_DOUBLEBUFFER};
RETVAL = new wxGLCanvas( parent, id, pos, size, style, name, attrib);
(I know they say double-buffering doesn't work with xinerama, but with
that set it works -- the redraw flicker goes away and
OpenGL::glGetBooleanv_p(GL_DOUBLEBUFFER) turns from false to true!)
So, should this change be made in Wx::GLCanvas or is there something I
should be doing to my configuration instead?
Thanks,
Eric
--
Moving pianos is dangerous.
Moving pianos are dangerous.
Buffalo buffalo buffalo buffalo buffalo buffalo buffalo.
---------------------------------------------------
http://scratchcomputing.com
---------------------------------------------------