mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-19 04:08:25 +02:00
i915: Fix EGL make current
This commit is contained in:
parent
88b806a069
commit
7420bc05a8
1 changed files with 8 additions and 5 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue