aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/com/jogamp
diff options
context:
space:
mode:
Diffstat (limited to 'src/jogl/classes/com/jogamp')
-rw-r--r--src/jogl/classes/com/jogamp/openmax/OMXInstance.java6
1 files changed, 3 insertions, 3 deletions
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);