evas - gl_drm - delete old surfaces before creating new ones

we shouldnt go have multiple drm window surfaces per drm surface...
this is bad.

@fix
This commit is contained in:
Carsten Haitzler 2019-08-07 16:17:13 +01:00
parent 2c0ea5b5e3
commit 8e67e9d18e
1 changed files with 2 additions and 0 deletions

View File

@ -279,6 +279,8 @@ _evas_outbuf_egl_setup(Outbuf *ob)
}
}
if (ob->egl.surface != EGL_NO_SURFACE)
eglDestroySurface(ob->egl.disp, ob->egl.surface);
ob->egl.surface = EGL_NO_SURFACE;
#ifdef EGL_MESA_platform_gbm
if (dlsym_eglCreatePlatformWindowSurfaceEXT)