From 711b283a350e2ad27be38e4baede26ad744c1450 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Thu, 12 Apr 2012 20:20:34 +0200 Subject: AndroidWindow: Fix regression (commit c9066a6df7a0b8612a8a0b3e5c8977268a1257e8), no destruction on surface size change. --- src/newt/classes/jogamp/newt/driver/android/AndroidWindow.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/newt') diff --git a/src/newt/classes/jogamp/newt/driver/android/AndroidWindow.java b/src/newt/classes/jogamp/newt/driver/android/AndroidWindow.java index ca1e5b026..68c0b8dd3 100644 --- a/src/newt/classes/jogamp/newt/driver/android/AndroidWindow.java +++ b/src/newt/classes/jogamp/newt/driver/android/AndroidWindow.java @@ -313,7 +313,7 @@ public class AndroidWindow extends jogamp.newt.WindowImpl implements Callback2 { public void surfaceChanged(SurfaceHolder aHolder, int aFormat, int aWidth, int aHeight) { Log.d(MD.TAG, "surfaceChanged: f "+nativeFormat+" -> "+aFormat+", "+aWidth+"x"+aHeight+", current surfaceHandle: 0x"+Long.toHexString(surfaceHandle)); - if(0!=surfaceHandle && ( androidFormat != aFormat || getWidth()!=aWidth || getHeight()!=aHeight) ) { + if(0!=surfaceHandle && androidFormat != aFormat ) { // re-create Log.d(MD.TAG, "surfaceChanged (destroy old)"); windowDestroyNotify(); -- cgit v1.2.3