diff options
author | Kristian Høgsberg <[email protected]> | 2010-07-22 21:24:14 -0400 |
---|---|---|
committer | Kristian Høgsberg <[email protected]> | 2010-07-22 22:16:32 -0400 |
commit | 31819830b66a49f1b62e09090cc65aefc657aeb8 (patch) | |
tree | 4f818e5a2151cb673b73f901454b1d126227eb64 /src/glx/glxcurrent.c | |
parent | ab434f6b7641a64d30725a9ac24929240362d466 (diff) |
glx: Allocate the __GLXcontext in the DRI drivers
Diffstat (limited to 'src/glx/glxcurrent.c')
-rw-r--r-- | src/glx/glxcurrent.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/glx/glxcurrent.c b/src/glx/glxcurrent.c index 43469c371cf..0bf61779c4a 100644 --- a/src/glx/glxcurrent.c +++ b/src/glx/glxcurrent.c @@ -399,7 +399,7 @@ MakeContextCurrent(Display * dpy, GLXDrawable draw, } bindReturnValue = - (gc->driContext->bindContext) (gc->driContext, pdraw, pread); + (gc->driContext->bindContext) (gc, pdraw, pread); } else if (!gc && oldGC && oldGC->driContext) { bindReturnValue = True; @@ -441,7 +441,7 @@ MakeContextCurrent(Display * dpy, GLXDrawable draw, } #if defined(GLX_DIRECT_RENDERING) && !defined(GLX_USE_APPLEGL) else if (oldGC->driContext && oldGC != gc) { - oldGC->driContext->unbindContext(oldGC->driContext); + oldGC->driContext->unbindContext(oldGC); } #endif @@ -488,9 +488,7 @@ MakeContextCurrent(Display * dpy, GLXDrawable draw, #if defined(GLX_DIRECT_RENDERING) && !defined(GLX_USE_APPLEGL) /* Destroy the old direct rendering context */ if (oldGC->driContext) { - oldGC->driContext->destroyContext(oldGC->driContext, - oldGC->psc, - oldGC->createDpy); + oldGC->driContext->destroyContext(oldGC); oldGC->driContext = NULL; } #endif |