Hi,

From the patch by Ian for bug 8443 he rearranged the code in
mesa/src/glx/x11/glxext.c,  MakeContextCurrent() and removed a set of
oldGC->currentContextTag = 0 when oldGC->isDirect is true and there is
an old context. For some reason, currentContextTag previously has been
set to -1. When it gets passed into SendMakeCurrentRequest on line
1614, it will cause an X error. The first patch restores the old
behavior as closely as possible.

I also found where the context's currentContextTag is set to -1. It's
in the same function on line 1712. If there is nothing that depends on
currentContextTag being set to -1, then we ought to make is 0 instead,
as in the second alternative patch. However, if there something that
depends on it, probably should just use the first patch intead (or
make a slight change to the SendMakeCurrentRequest call or the
function itself). Can someone explain why this -1 set is needed?

A test program is found in bug 8443.

Jesse

Attachment: contexttag1.diff
Description: Binary data

Attachment: contexttag2.diff
Description: Binary data

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to