aboutsummaryrefslogtreecommitdiffstats
path: root/src/newt
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2019-12-04 22:44:08 +0100
committerSven Gothel <[email protected]>2019-12-04 22:44:08 +0100
commit59fe721a926ff66e98b716a25a08bdfa584ca6fa (patch)
treeeacccad5037291317ac344a72f73dc0d233bd660 /src/newt
parentc7778616ef7706461ee0b09e20591f5a6e4ea363 (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!
Diffstat (limited to 'src/newt')
-rw-r--r--src/newt/classes/jogamp/newt/driver/egl/gbm/WindowDriver.java1
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);
}