The BadMatch in X_GLXCreateGLXPixmap is another problem.. here you should get a BadMatch in X_GLXMakeCurrent.
That's true, this patch should only fix the BadMatches in glXMakeCurrent.
BadMatch in X_GLXCreateGLXPixmap is a known problem, I've submitted a patch but it was rejected.
Well, try to resubmit it :) Or post it here, so that others could test it. Perhaps you could merge this one-liner into it and then resubmit it.
Leon
Leon Freitag wrote:
BadMatch in X_GLXCreateGLXPixmap is a known problem, I've submitted a patch but it was rejected.
Well, try to resubmit it :) Or post it here, so that others could test it. Perhaps you could merge this one-liner into it and then resubmit it.
Yep, here it is. But note that it's only supported on GLX 1.3 and higher.
tom
Am Dienstag, 4. April 2006 14:49 schrieb Tomas Carnecky:
Leon Freitag wrote:
BadMatch in X_GLXCreateGLXPixmap is a known problem, I've submitted a patch but it was rejected.
Well, try to resubmit it :) Or post it here, so that others could test it. Perhaps you could merge this one-liner into it and then resubmit it.
Yep, here it is. But note that it's only supported on GLX 1.3 and higher.
tom
- fbCfgs = wine_glx.p_glXChooseFBConfig(ctx->display,
DefaultScreen(ctx->display), attribList, &nElements);
Hm, as I see this patch tries to fix the spec violation. I have tried something like this already before on weekend, but glXChooseFBConfig returned NULL and the problem still existed. I'll try this patch however, perhaps I made some mistake this weekend. Should it really fix X_GLXCreateGLXPixmap?
Leon
Leon Freitag wrote:
Am Dienstag, 4. April 2006 14:49 schrieb Tomas Carnecky:
Leon Freitag wrote:
BadMatch in X_GLXCreateGLXPixmap is a known problem, I've submitted a patch but it was rejected.
Well, try to resubmit it :) Or post it here, so that others could test it. Perhaps you could merge this one-liner into it and then resubmit it.
Yep, here it is. But note that it's only supported on GLX 1.3 and higher.
tom
- fbCfgs = wine_glx.p_glXChooseFBConfig(ctx->display,
DefaultScreen(ctx->display), attribList, &nElements);
Hm, as I see this patch tries to fix the spec violation. I have tried something like this already before on weekend, but glXChooseFBConfig returned NULL and the problem still existed.
Right, that is totally possible.. because glXQueryDrawable() just above returns an incorrect FBCONFIG_ID as long as the drawable hasn't been touched by a GLX function (glXMakeCurrent() for example).
try to call describeDrawable() before and after glXMakeCurrent() ans see if the output changes.
I'll try this patch however, perhaps I made some mistake this weekend. Should it really fix X_GLXCreateGLXPixmap?
No, this is only a cosmetic change, but it makes debugging easier because you then see the correct IDs. The X_GLXCreateGLXPixmap fix is much harder :( Although I wrote a couple of patches (because this bug can be fixed in several places) all were rejected. Search the wine-patches mailing list, you'll find the patches there.
tom
Am Dienstag, 4. April 2006 14:49 schrieb Tomas Carnecky:
Leon Freitag wrote:
BadMatch in X_GLXCreateGLXPixmap is a known problem, I've submitted a patch but it was rejected.
Well, try to resubmit it :) Or post it here, so that others could test it. Perhaps you could merge this one-liner into it and then resubmit it.
Yep, here it is. But note that it's only supported on GLX 1.3 and higher.
tom
P.S. AFAIK glx 1.3 is a requirement for wine. You can find plenty wine_glx.version checks in wine code.
Leon
Am Dienstag, 4. April 2006 14:49 schrieben Sie:
Leon Freitag wrote:
BadMatch in X_GLXCreateGLXPixmap is a known problem, I've submitted a patch but it was rejected.
Well, try to resubmit it :) Or post it here, so that others could test it. Perhaps you could merge this one-liner into it and then resubmit it.
Yep, here it is. But note that it's only supported on GLX 1.3 and higher.
tom
As I see if you combine this patch with the one-liner I posted it fixes the BadMatch bug in glXMakeCurrent as well as a piece of code that violates the GLX specification and doesn't break anything, so you could try resubmitting it. I'll take a look at your other patches this weekend.
Leon