diff options
author | Sven Gothel <[email protected]> | 2023-03-06 05:15:27 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-03-06 05:15:27 +0100 |
commit | 8c441b4fc5a63967cfded3ec58cc0736a0aadb0f (patch) | |
tree | 690ad26288b4fc24e2f2d676e89d826a7ca9a30f | |
parent | 88852f2518a44ea0253e0a4db67d6973bbe97834 (diff) |
NEWT DRM EGL/GBM: WindowDriver: Don't issue glFinish() here, as eglSwapBuffers(..) already performs this task (TODO: More Tests!)
-rw-r--r-- | src/newt/classes/jogamp/newt/driver/egl/gbm/WindowDriver.java | 4 |
1 files changed, 2 insertions, 2 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 9aa1f4823..4614542ba 100644 --- a/src/newt/classes/jogamp/newt/driver/egl/gbm/WindowDriver.java +++ b/src/newt/classes/jogamp/newt/driver/egl/gbm/WindowDriver.java @@ -107,7 +107,7 @@ public class WindowDriver extends WindowImpl { } @Override - protected void createNativeImpl(boolean[] positionModified) { + protected void createNativeImpl(final boolean[] positionModified) { if (0 != getParentWindowHandle()) { throw new RuntimeException("Window parenting not supported (yet)"); } @@ -205,7 +205,7 @@ public class WindowDriver extends WindowImpl { final GLContext ctx = GLContext.getCurrent(); final int swapInterval = ctx.getSwapInterval(); - ctx.getGL().glFinish(); // Poor man's SYNC: glFenceSync () with glWaitSync() (remove later!) + // ctx.getGL().glFinish(); // 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); } |