diff options
author | Sven Gothel <[email protected]> | 2001-05-09 13:06:09 +0000 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2001-05-09 13:06:09 +0000 |
commit | 7473a5ed807ed01852df6aa1bdb0634bcabd219e (patch) | |
tree | fa2a0dc0cbff6edb09e18de84b8ed11a3ac49842 /gl4java/awt/GLCanvas.java | |
parent | 99f156a9d9e86e6d835ad9791071b23335476330 (diff) |
2.7.2.0 swing and minor changes
Diffstat (limited to 'gl4java/awt/GLCanvas.java')
-rw-r--r-- | gl4java/awt/GLCanvas.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gl4java/awt/GLCanvas.java b/gl4java/awt/GLCanvas.java index f997bdd..73c9bba 100644 --- a/gl4java/awt/GLCanvas.java +++ b/gl4java/awt/GLCanvas.java @@ -174,7 +174,7 @@ public class GLCanvas extends Canvas private GLEventListenerList listeners = new GLEventListenerList();
static {
- if(GLContext.loadNativeLibraries(null, null, null)==false)
+ if(GLContext.doLoadNativeLibraries(null, null, null)==false)
System.out.println("GLCanvas could not load def. native libs.");
}
@@ -443,6 +443,11 @@ public class GLCanvas extends Canvas rgba = glj.isRGBA();
}
+ Color col = getBackground();
+ gl.glClearColor((float)col.getRed()/255.0f,
+ (float)col.getGreen()/255.0f,
+ (float)col.getBlue()/255.0f, 0.0f);
+
init();
// fetch the top-level window ,
|