aboutsummaryrefslogtreecommitdiffstats
path: root/src/nativewindow/classes/jogamp
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2019-11-23 17:22:39 +0100
committerSven Gothel <[email protected]>2019-11-23 17:22:39 +0100
commit976e89ff24da3b2cdf206e8ef8f222f54fb467de (patch)
treec8fc6a0f5e8d8cc81042459a48d86249c5ca4f42 /src/nativewindow/classes/jogamp
parentbb83bd2df5723ed145f59e9bd5d212de6c4daba8 (diff)
Bug 1156: GBM: Bring up incl GL rendering (TODO: GBM working page flip / sync)
- EGLSurface: Factor out 'eglCreate[Platform]WindowSurface' NEWT egl.gbm.WindowDriver -- Properly use GBM fourcc format and use as visualID for GBM surface creation and EGL config selection -- Create eglSurface within this class -- Hook up GBM/DRM page flip (not working yet, no visible artifacts - no swap) - ProxySurfaceImpl.surfaceSwap() call upstreamSurface's implementation if available TODO: 'Permission denied' calling: - drmSetMaster (optional) - drmModeSetCrtc - drmModePageFlip
Diffstat (limited to 'src/nativewindow/classes/jogamp')
-rw-r--r--src/nativewindow/classes/jogamp/nativewindow/ProxySurfaceImpl.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nativewindow/classes/jogamp/nativewindow/ProxySurfaceImpl.java b/src/nativewindow/classes/jogamp/nativewindow/ProxySurfaceImpl.java
index 4c53ddb94..9f650f760 100644
--- a/src/nativewindow/classes/jogamp/nativewindow/ProxySurfaceImpl.java
+++ b/src/nativewindow/classes/jogamp/nativewindow/ProxySurfaceImpl.java
@@ -163,6 +163,10 @@ public abstract class ProxySurfaceImpl implements ProxySurface {
@Override
public boolean surfaceSwap() {
+ final NativeSurface upstreamSurface = upstream.getUpstreamSurface();
+ if( null != upstreamSurface ) {
+ return upstreamSurface.surfaceSwap();
+ }
return false;
}