summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-08-07 16:17:13 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-08-07 16:39:10 +0100
commit8e67e9d18e2d0862d86cbe7c4c6e319977054510 (patch)
tree0ccddf3b0ab7771f13e73ecf8c47061f2e2e988c /src/modules
parent2c0ea5b5e3b9a1b8a00c2b940f3853d21f88e957 (diff)
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
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/evas/engines/gl_drm/evas_outbuf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/evas/engines/gl_drm/evas_outbuf.c b/src/modules/evas/engines/gl_drm/evas_outbuf.c
index 1bdf09afa8..f478da9885 100644
--- a/src/modules/evas/engines/gl_drm/evas_outbuf.c
+++ b/src/modules/evas/engines/gl_drm/evas_outbuf.c
@@ -279,6 +279,8 @@ _evas_outbuf_egl_setup(Outbuf *ob)
279 } 279 }
280 } 280 }
281 281
282 if (ob->egl.surface != EGL_NO_SURFACE)
283 eglDestroySurface(ob->egl.disp, ob->egl.surface);
282 ob->egl.surface = EGL_NO_SURFACE; 284 ob->egl.surface = EGL_NO_SURFACE;
283#ifdef EGL_MESA_platform_gbm 285#ifdef EGL_MESA_platform_gbm
284 if (dlsym_eglCreatePlatformWindowSurfaceEXT) 286 if (dlsym_eglCreatePlatformWindowSurfaceEXT)