From 3e2b16a820bfe03f8f3837c3aaa615c8c4b7f18c Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 13 Feb 2001 05:32:07 +0000 Subject: JAWT Support JDK >=1.3 --- demos/HodglimsNeHe/Lesson7.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'demos/HodglimsNeHe/Lesson7.java') diff --git a/demos/HodglimsNeHe/Lesson7.java b/demos/HodglimsNeHe/Lesson7.java index d6f65f4..a19a016 100644 --- a/demos/HodglimsNeHe/Lesson7.java +++ b/demos/HodglimsNeHe/Lesson7.java @@ -351,6 +351,7 @@ public class Lesson7 extends Applet //Swap buffers glj.gljSwap(); + glj.gljFree(); } // Methods required for the implementation of MouseListener @@ -396,6 +397,10 @@ public class Lesson7 extends Applet */ public void keyPressed(KeyEvent e) { + //Ensure GL is initialised correctly + if (glj.gljMakeCurrent(true) == false) + return; + switch(e.getKeyCode()) { //Switch ON/OFF light when L is pressed @@ -473,6 +478,8 @@ public class Lesson7 extends Applet break; } } + glj.gljFree(); + } -- cgit v1.2.3