summaryrefslogtreecommitdiffstats
path: root/src/nativewindow/classes/jogamp
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2014-06-08 07:23:14 +0200
committerSven Gothel <[email protected]>2014-06-08 07:23:14 +0200
commit64518911395ee9698a326f4ca01b2ad28dabf673 (patch)
tree1e22acaf79a9b90661cb451e7e27a8a884e4898d /src/nativewindow/classes/jogamp
parentebe980ad6ac40148bc84913d1ba1f7adf6200490 (diff)
UpstreamSurfaceHook: Add 'NativeSurface getUpstreamSurface()' (from EGLUpstreamSurfaceHook) to generalize ProxySurfaceImpl.getUpstreamSurface()
Diffstat (limited to 'src/nativewindow/classes/jogamp')
-rw-r--r--src/nativewindow/classes/jogamp/nativewindow/ProxySurfaceImpl.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nativewindow/classes/jogamp/nativewindow/ProxySurfaceImpl.java b/src/nativewindow/classes/jogamp/nativewindow/ProxySurfaceImpl.java
index 969e012a6..53daa2acd 100644
--- a/src/nativewindow/classes/jogamp/nativewindow/ProxySurfaceImpl.java
+++ b/src/nativewindow/classes/jogamp/nativewindow/ProxySurfaceImpl.java
@@ -36,7 +36,6 @@ import javax.media.nativewindow.ProxySurface;
import javax.media.nativewindow.SurfaceUpdatedListener;
import javax.media.nativewindow.UpstreamSurfaceHook;
-
import com.jogamp.common.util.locks.LockFactory;
import com.jogamp.common.util.locks.RecursiveLock;
@@ -74,7 +73,9 @@ public abstract class ProxySurfaceImpl implements ProxySurface {
}
@Override
- public NativeSurface getUpstreamSurface() { return null; }
+ public final NativeSurface getUpstreamSurface() {
+ return upstream.getUpstreamSurface();
+ }
@Override
public final UpstreamSurfaceHook getUpstreamSurfaceHook() { return upstream; }