From 39cd0dfa0e46a3617b51e5b15a5fccedeae77f39 Mon Sep 17 00:00:00 2001
From: Sven Gothel <sgothel@jausoft.com>
Date: Wed, 1 Oct 2014 04:54:42 +0200
Subject: Bug 1078, Bug 1082: Fix regression (typo), add missing assignment of
 printGLAD in NewtCanvasAWT.setupPrint()

---
 make/scripts/tests.sh                                   | 4 ++--
 src/newt/classes/com/jogamp/newt/awt/NewtCanvasAWT.java | 1 +
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/make/scripts/tests.sh b/make/scripts/tests.sh
index 9d6750f5b..83e489a68 100644
--- a/make/scripts/tests.sh
+++ b/make/scripts/tests.sh
@@ -460,7 +460,7 @@ function testawtswt() {
 #testawt com.jogamp.opengl.test.junit.jogl.tile.TestTiledPrintingGearsAWT $*
 #testawt com.jogamp.opengl.test.junit.jogl.tile.TestTiledPrintingGearsSwingAWT $*
 #testawt com.jogamp.opengl.test.junit.jogl.tile.TestTiledPrintingGearsSwingAWT2 $*
-#testawt com.jogamp.opengl.test.junit.jogl.tile.TestTiledPrintingGearsNewtAWT $*
+testawt com.jogamp.opengl.test.junit.jogl.tile.TestTiledPrintingGearsNewtAWT $*
 #testawt com.jogamp.opengl.test.junit.jogl.tile.TestTiledPrintingNIOImageSwingAWT $*
 
 #
@@ -662,7 +662,7 @@ function testawtswt() {
 #testawt com.jogamp.opengl.test.junit.jogl.awt.TestAWT01GLn $*
 #testawt com.jogamp.opengl.test.junit.jogl.awt.TestSwingAWT01GLn
 #testawt com.jogamp.opengl.test.junit.jogl.awt.TestAWT03GLCanvasRecreate01 $*
-testawt com.jogamp.opengl.test.junit.jogl.awt.TestAWT03GLJPanelRecreate01 $*
+#testawt com.jogamp.opengl.test.junit.jogl.awt.TestAWT03GLJPanelRecreate01 $*
 #testawt com.jogamp.opengl.test.junit.jogl.awt.TestAWT02WindowClosing
 #testawt com.jogamp.opengl.test.junit.jogl.awt.TestJScrollPaneMixHwLw01AWT $*
 #testawt com.jogamp.opengl.test.junit.jogl.awt.TestBug642JSplitPaneMixHwLw01AWT $*
diff --git a/src/newt/classes/com/jogamp/newt/awt/NewtCanvasAWT.java b/src/newt/classes/com/jogamp/newt/awt/NewtCanvasAWT.java
index e7ef22473..c470f6840 100644
--- a/src/newt/classes/com/jogamp/newt/awt/NewtCanvasAWT.java
+++ b/src/newt/classes/com/jogamp/newt/awt/NewtCanvasAWT.java
@@ -684,6 +684,7 @@ public class NewtCanvasAWT extends java.awt.Canvas implements WindowClosingProto
                         }
                     }
                     if( null != offGLAD ) {
+                        printGLAD = offGLAD;
                         GLDrawableUtil.swapGLContextAndAllGLEventListener(glad, printGLAD);
                         printDrawable = printGLAD.getDelegatedDrawable();
                     }
-- 
cgit v1.2.3