i915: Fix EGL make current

This commit is contained in:
Jakob Bornecrantz 2008-07-07 15:49:09 +02:00
parent 88b806a069
commit 7420bc05a8

View file

@ -593,12 +593,15 @@ drm_make_current(_EGLDriver *drv, EGLDisplay dpy, EGLSurface draw, EGLSurface re
if (!b)
return EGL_FALSE;
/* XXX this is where we'd do the hardware context switch */
(void) drawSurf;
(void) readSurf;
(void) ctx;
if (ctx) {
if (!drawSurf || !readSurf)
return EGL_FALSE;
intel_make_current(ctx->context, drawSurf->drawable, readSurf->drawable);
} else {
intel_make_current(NULL, NULL, NULL);
}
intel_make_current(ctx->context, drawSurf->drawable, readSurf->drawable);
return EGL_TRUE;
}