aboutsummaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
Diffstat (limited to 'demos')
-rw-r--r--demos/GLLandScape/GLLandScape1w1.java3
-rw-r--r--demos/HodglimsNeHe/Lesson4.java2
2 files changed, 4 insertions, 1 deletions
diff --git a/demos/GLLandScape/GLLandScape1w1.java b/demos/GLLandScape/GLLandScape1w1.java
index cef739a..6d8b650 100644
--- a/demos/GLLandScape/GLLandScape1w1.java
+++ b/demos/GLLandScape/GLLandScape1w1.java
@@ -151,7 +151,10 @@ class GLLandScape1w1 extends GLAnimCanvas
random = new Random(System.currentTimeMillis());
planes = new GlutPlaneObj[MAX_PLANES];
for (i = 0; i < MAX_PLANES; i++)
+ {
+ System.out.println("init .. plane: "+i);
planes[i] = new GlutPlaneObj(gl, glu);
+ }
// srand((unsigned)time(NULL));
makeTexture();
diff --git a/demos/HodglimsNeHe/Lesson4.java b/demos/HodglimsNeHe/Lesson4.java
index 270b08b..da9eacb 100644
--- a/demos/HodglimsNeHe/Lesson4.java
+++ b/demos/HodglimsNeHe/Lesson4.java
@@ -240,7 +240,7 @@ public class Lesson4 extends Applet
//Swap buffers
glj.gljSwap();
- glj.gljFree();
+ glj.gljFree(true);
}