From 0d1ea8ae8eb940b1b29f4f80c232a1d456300362 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Fri, 8 Oct 2010 02:49:00 +0200 Subject: syn with JOGL 018c7e8660dc0af68bd129be9af5094d04d0b431 --- src/demos/readbuffer/Main.java | 4 ++-- src/demos/readbuffer/Surface2File.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/demos/readbuffer/Main.java b/src/demos/readbuffer/Main.java index 44b665c..8c18e08 100755 --- a/src/demos/readbuffer/Main.java +++ b/src/demos/readbuffer/Main.java @@ -12,8 +12,8 @@ public class Main implements WindowListener, MouseListener, SurfaceUpdatedListen public boolean quit = false; public GLWindow window = null; - public void surfaceUpdated(Object updater, NativeWindow window, long when) { - if(null!=window) { + public void surfaceUpdated(Object updater, NativeSurface surface, long when) { + if(null!=surface) { this.window.display(); } } diff --git a/src/demos/readbuffer/Surface2File.java b/src/demos/readbuffer/Surface2File.java index 74fa637..2303a1c 100755 --- a/src/demos/readbuffer/Surface2File.java +++ b/src/demos/readbuffer/Surface2File.java @@ -51,7 +51,7 @@ public class Surface2File implements SurfaceUpdatedListener { readBufferUtil.dispose(); } - public void surfaceUpdated(Object updater, NativeWindow window, long when) { + public void surfaceUpdated(Object updater, NativeSurface surface, long when) { if(updater instanceof GLDrawable) { GLDrawable drawable = (GLDrawable) updater; GLContext ctx = GLContext.getCurrent(); -- cgit v1.2.3