> > 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.
>
> Could you provide more details of this? Is the X window created with
> a visual which was returned by glXChooseVisual?
No, the window was created by my program which creates a window on a drawing
area. For the visual, I first try to get a 24 bit TrueColor, then 16 bit
TrueColor, then 8 bit PseudoColor.
I can't use glXChooseVisual since we create the windows so our applications can
draw into them (we have our own in-house graphics lib which might be doing weird
things to X).
Also, the default visual for this Sun in 8 bit Pseudocolor. I am creating a 24
bit TrueColor window on an 8 bit PseudoColor drawing area. Why the vishandle
fails is that it is not "checking" enough (I think). From what I remember, it
was checking the TrueColor, but not the depth, so it returned a match when it
really didn't have one.
My program is trying to replace the in-house graphics library we use with the
VTK which uses Mesa. This means I can't change too much code without breaking
everyone else. We might be doing some weird things since no one here really
understands all these visual nightmares.
> I have to be VERY careful about changing this code or other programs
> are likely to break.
I totally understand!! Possibly, the code could be changed to where it checks
more of the structure against the real visual and then it would see a failure
and go to the next one which would probably be okay as well.
> Remember, Mesa's GLX is just an emulation of the real thing. It's
> impossible for Mesa's GLX to act exactly like a real GLX implementation.
Significantly, when I link with the real GL on the Sun (v1.1.2 I think), it does
not bail like Mesa does, but instead draws in black and white. I was so happy
to see the Mesa plot in color on our PseudoColor and TrueColor displays!
> I'll need to know more about your code before I make any changes.
> Thanks.
Let me know if you need more info or code fragments or whatever. I'm more than
happy to share. Thanks for all the work you've done on Mesa. Its really been
nice and much appreciated here!
Joey
+--------------------------------------------------------------------------+
+ Joey Mukherjee "I am amused by the simplicity +
+ [EMAIL PROTECTED] of this game. Bring me your +
+ http://www.space.swri.edu/~joey finest meats and cheeses." +
+ +
+--------------------------------------------------------------------------+
_______________________________________________
Mesa-dev maillist - [EMAIL PROTECTED]
http://lists.mesa3d.org/mailman/listinfo/mesa-dev