Fix for the BadMatch error (bug #4945)

Wino Rojo winorojo at hotmail.com
Tue May 23 17:12:36 CDT 2006


Hi,

I'v found a way to fix my problem with wglShareLists - BadMatch error 
(X_GLXMakeCurrent) (see bug #4945).

In X11DRV_setup_opengl_visual() (x11drv/opengl.c), I've changed this line:

int dblBuf[] = {GLX_RGBA,GLX_DEPTH_SIZE, 16, GLX_STENCIL_SIZE, 8, 
GLX_DOUBLEBUFFER, None};

to this:

int dblBuf[] = {GLX_RGBA,GLX_DEPTH_SIZE, 24, GLX_STENCIL_SIZE, 8, 
GLX_ALPHA_SIZE, 8, GLX_DOUBLEBUFFER, None};

That is, I choose a visual with a depth size of 24 *and* I also need to set 
the alpha size to 8. With this small change, I can use my 3d app without 
problems

Does anybody see a problem with this fix?

Thanks,

Wino

_________________________________________________________________
Take advantage of powerful junk e-mail filters built on patented Microsoft® 
SmartScreen Technology. 
http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines 
  Start enjoying all the benefits of MSN® Premium right now and get the 
first two months FREE*.




More information about the wine-devel mailing list