mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-30 09:20:23 +01:00
egl_dri2: Fix a typo that make glFlush be called at wrong time.
We want to call glFlush when there is a current context. That is,
old_ctx. This is a regression introduced by
d19afc57fe.
This commit is contained in:
parent
d1acb92016
commit
547e7619aa
1 changed files with 1 additions and 1 deletions
|
|
@ -1197,7 +1197,7 @@ dri2_make_current(_EGLDriver *drv, _EGLDisplay *disp, _EGLSurface *dsurf,
|
|||
return EGL_FALSE;
|
||||
|
||||
/* flush before context switch */
|
||||
if (ctx && dri2_drv->glFlush)
|
||||
if (old_ctx && dri2_drv->glFlush)
|
||||
dri2_drv->glFlush();
|
||||
|
||||
ddraw = (dri2_dsurf) ? dri2_dsurf->dri_drawable : NULL;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue