[Glamor] [PATCH 12/15] glamor_egl: Don't call eglDestroyImageKHR directly.
zhigang.gong at linux.intel.com
zhigang.gong at linux.intel.com
Fri Jan 20 00:52:10 PST 2012
From: Zhigang Gong <zhigang.gong at linux.intel.com>
Some implementation doesn't have it.
Signed-off-by: Peng Li <peng.li at intel.com>
Signed-off-by: Zhigang Gong <zhigang.gong at linux.intel.com>
---
src/glamor_egl.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/src/glamor_egl.c b/src/glamor_egl.c
index 3d581d2..1b18c4c 100644
--- a/src/glamor_egl.c
+++ b/src/glamor_egl.c
@@ -87,6 +87,7 @@ struct glamor_egl_screen_private {
struct gbm_device *gbm;
PFNEGLCREATEIMAGEKHRPROC egl_create_image_khr;
+ PFNEGLDESTROYIMAGEKHRPROC egl_destroy_image_khr;
PFNGLEGLIMAGETARGETTEXTURE2DOESPROC egl_image_target_texture2d_oes;
struct glamor_gl_dispatch *dispatch;
};
@@ -235,7 +236,7 @@ glamor_egl_destroy_textured_pixmap(PixmapPtr pixmap)
* a texture. we must call glFlush to make sure the
* operation on that texture has been done.*/
glamor_block_handler(pixmap->drawable.pScreen);
- eglDestroyImageKHR(glamor_egl->display, image);
+ glamor_egl->egl_destroy_image_khr(glamor_egl->display, image);
}
}
glamor_destroy_textured_pixmap(pixmap);
@@ -336,6 +337,9 @@ glamor_egl_init(ScrnInfoPtr scrn, int fd)
glamor_egl->egl_create_image_khr = (PFNEGLCREATEIMAGEKHRPROC)
eglGetProcAddress("eglCreateImageKHR");
+ glamor_egl->egl_destroy_image_khr = (PFNEGLDESTROYIMAGEKHRPROC)
+ eglGetProcAddress("eglDestroyImageKHR");
+
glamor_egl->egl_image_target_texture2d_oes =
(PFNGLEGLIMAGETARGETTEXTURE2DOESPROC)
eglGetProcAddress("glEGLImageTargetTexture2DOES");
--
1.7.4.4
More information about the Glamor
mailing list