diff options
author | Sven Gothel <[email protected]> | 2012-04-12 20:20:34 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2012-04-12 20:20:34 +0200 |
commit | 711b283a350e2ad27be38e4baede26ad744c1450 (patch) | |
tree | ad69995ad79587bcdc83d88a1a5e6c7793d84f3f /src/newt/classes/jogamp | |
parent | 952a679cb1b35a46352bf7d21853c0297bd92b96 (diff) |
AndroidWindow: Fix regression (commit c9066a6df7a0b8612a8a0b3e5c8977268a1257e8), no destruction on surface size change.
Diffstat (limited to 'src/newt/classes/jogamp')
-rw-r--r-- | src/newt/classes/jogamp/newt/driver/android/AndroidWindow.java | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |