Hello!
I am not a member of the list so I would appreciate any replies coming
to me as well as the list.
I think I might have found and fixed a bug in Mesa v3.0. I use Mesa
with VTK, the Visualization Toolkit, and in one routine I plot the VTK
window onto a window of my X/Motif program. I tell VTK the window to
draw into and it will call the appropriate Mesa routine to route it to
the right window.
However, if the window is a different depth than the default, Mesa can
not get the correct visual depth to match up.
To fix it, I changed the following line in src/X/fakeglx.c (336) in the
routine find_glx_visual:
if (VisualTable[i]->display==dpy && VisualTable[i]->vishandle==vinfo) {
to
if (VisualTable[i]->display==dpy && VisualTable[i]->visinfo==vinfo) {
^^^^^^^
I think this is correct since visinfo is used more often than vishandle,
the variables (visinfo and vinfo) look alike, and my program works! :-)
I don't know if this will have any bad ramifications, but I don't think
it will since it is still going through a list of potential visuals.
Cheers!
Joey
_______________________________________________
Mesa-dev maillist - [EMAIL PROTECTED]
http://lists.mesa3d.org/mailman/listinfo/mesa-dev