From 55cbf76d34b5485c15cb77de1e6efc85d60a1eb1 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sat, 6 Nov 2010 06:18:30 +0100 Subject: Complete 1be7b5271ec1d08b6929a88dd811754d33d149de, EGL_KHR_fence_sync .. --- src/jogl/classes/com/jogamp/openmax/OMXInstance.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/jogl/classes/com') diff --git a/src/jogl/classes/com/jogamp/openmax/OMXInstance.java b/src/jogl/classes/com/jogamp/openmax/OMXInstance.java index 97f07da1c..d49eeb8e6 100644 --- a/src/jogl/classes/com/jogamp/openmax/OMXInstance.java +++ b/src/jogl/classes/com/jogamp/openmax/OMXInstance.java @@ -212,9 +212,9 @@ public class OMXInstance { // rendering the EGLImage texture before we tell OpenMAX to fill // it with a new frame. tmp[0] = EGL.EGL_NONE; - sync = eglExt.eglCreateFenceSyncKHR( + sync = eglExt.eglCreateSyncKHR( eglDisplay, - eglExt.EGL_SYNC_PRIOR_COMMANDS_COMPLETE_KHR, tmp, 0); + eglExt.EGL_SYNC_FENCE_KHR, tmp, 0); _setStreamEGLImageTexture2D(moviePtr, i, tex, image, sync); @@ -450,7 +450,7 @@ public class OMXInstance { eglImgTexs[i].image); } if(0!=eglImgTexs[i].sync) { - eglExt.eglDestroySyncKHR(eglImgTexs[i].sync); + eglExt.eglDestroySyncKHR(eglDisplay, eglImgTexs[i].sync); } if(null!=gl) { eglImgTexs[i].texture.destroy(gl); -- cgit v1.2.3