diff options
author | Sven Gothel <[email protected]> | 2019-12-04 22:44:08 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2019-12-04 22:44:08 +0100 |
commit | 59fe721a926ff66e98b716a25a08bdfa584ca6fa (patch) | |
tree | eacccad5037291317ac344a72f73dc0d233bd660 | |
parent | c7778616ef7706461ee0b09e20591f5a6e4ea363 (diff) |
Bug 1408: NEWT DRM/GBM WindowDriver: Adding glFinish() before eglSwapBuffers(..) just in case ..
This is the poor man's SYNC: glFenceSync () with glWaitSync().
However, this change did not resolve Bug 1408. Earmarked to be removed!
-rw-r--r-- | src/newt/classes/jogamp/newt/driver/egl/gbm/WindowDriver.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/newt/classes/jogamp/newt/driver/egl/gbm/WindowDriver.java b/src/newt/classes/jogamp/newt/driver/egl/gbm/WindowDriver.java index 75062287d..e618e1b8c 100644 --- a/src/newt/classes/jogamp/newt/driver/egl/gbm/WindowDriver.java +++ b/src/newt/classes/jogamp/newt/driver/egl/gbm/WindowDriver.java @@ -292,6 +292,7 @@ public class WindowDriver extends WindowImpl { final GLContext ctx = GLContext.getCurrent(); final int swapInterval = ctx.getSwapInterval(); + ctx.getGL().glFinish(); // FIXME: Poor man's SYNC: glFenceSync () with glWaitSync() (remove later!) if(!EGL.eglSwapBuffers(display.getHandle(), eglSurface)) { throw new GLException("Error swapping buffers, eglError "+toHexString(EGL.eglGetError())+", "+this); } |