diff options
author | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2021-09-05 00:35:24 +0100 |
---|---|---|
committer | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2021-09-05 00:35:24 +0100 |
commit | 724b1aa560e962d5750c13f37ac8077164e467c2 (patch) | |
tree | 4c58e4d6badf353d2c840f5676fe7cedbe4999b5 /src/modules | |
parent | 66f95b7637474776c2e34eb6af665198e6a946af (diff) | |
download | efl-724b1aa560e962d5750c13f37ac8077164e467c2.tar.gz |
evas - gl - ensure surfaces are 0 when destroyed
easier on debugging when we know that we destroyed them already
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/evas/engines/gl_x11/evas_engine.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/evas/engines/gl_x11/evas_engine.c b/src/modules/evas/engines/gl_x11/evas_engine.c index 580921ff01..34316a7556 100644 --- a/src/modules/evas/engines/gl_x11/evas_engine.c +++ b/src/modules/evas/engines/gl_x11/evas_engine.c @@ -1965,7 +1965,6 @@ _native_bind_cb(void *image) NULL); if (!n->ns_data.x11.surface) WRN("eglCreateImage() for Pixmap 0x%#lx failed: %#x", n->ns_data.x11.pixmap, eglGetError()); - } if (glsym_glEGLImageTargetTexture2DOES) { @@ -2119,6 +2118,7 @@ _native_free_cb(void *image) { glsym_evas_gl_common_eglDestroyImage(im->native.disp, n->ns_data.x11.surface); + n->ns_data.x11.surface = 0; if ((err = eglGetError()) != EGL_SUCCESS) { ERR("eglDestroyImage() failed."); @@ -2170,6 +2170,7 @@ _native_free_cb(void *image) { glsym_evas_gl_common_eglDestroyImage(im->native.disp, n->ns_data.tbm.surface); + n->ns_data.tbm.surface = 0; if ((err = eglGetError()) != EGL_SUCCESS) { ERR("eglDestroyImage() failed."); @@ -2197,6 +2198,7 @@ _native_free_cb(void *image) { glsym_evas_gl_common_eglDestroyImage(im->native.disp, n->ns_data.wl_surface.surface); + n->ns_data.wl_surface.surface = 0; if (eglGetError() != EGL_SUCCESS) ERR("eglDestroyImage() failed."); } |