summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2004-04-10 00:05:06 +0000
committerKenneth Russel <[email protected]>2004-04-10 00:05:06 +0000
commit0590053773825f33f52ffb3f322306791fa9d7b3 (patch)
tree88004c9cb224b35eeec6b5f4f513fb74e30ea55a
parent20dfe1a11592fc19e866aeab15c964d3e7545ebb (diff)
Fixed run-time problems with new visual selection code
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/jogl-1-1-temp-branch@102 232f8b59-042b-4e1e-8c03-345bb8c30851
-rw-r--r--make/build.xml4
-rw-r--r--src/net/java/games/jogl/impl/x11/X11GLContextFactory.java4
2 files changed, 6 insertions, 2 deletions
diff --git a/make/build.xml b/make/build.xml
index 978ab1b9e..1f5adac14 100644
--- a/make/build.xml
+++ b/make/build.xml
@@ -355,7 +355,7 @@
<property name="c.compiler.includes" value="-I&quot;make/stub_includes/opengl&quot; -I&quot;${java.includes.dir}&quot; -I&quot;${java.includes.dir.platform}&quot; -I&quot;make/stub_includes/cg&quot;" />
<property name="c.linker" value="gcc" />
<property name="c.linker.flags" value="-shared" />
- <property name="c.linker.jogl.libs" value="-L&quot;${java.lib.dir.platform}&quot; -ljawt -lGL -lGLU" />
+ <property name="c.linker.jogl.libs" value="-L&quot;${java.lib.dir.platform}&quot; -ljawt -lGL -lGLU -lX11" />
<property name="rootrel.c.linker.jogl.dso" value="${rootrel.obj}/libjogl.so" />
<property name="c.linker.jogl.dso" value="${project.root}/${rootrel.c.linker.jogl.dso}" />
<property name="c.linker.jogl.flags" value="-o ${c.linker.jogl.dso}" />
@@ -380,7 +380,7 @@
<property name="c.compiler.includes" value="-I&quot;make/stub_includes/opengl&quot; -I&quot;${java.includes.dir}&quot; -I&quot;${java.includes.dir.platform}&quot;" />
<property name="c.linker" value="cc" />
<property name="c.linker.flags" value="-G" />
- <property name="c.linker.jogl.libs" value="-L&quot;${java.lib.dir.platform}&quot; -ljawt -lGL -lGLU" />
+ <property name="c.linker.jogl.libs" value="-L&quot;${java.lib.dir.platform}&quot; -ljawt -lGL -lGLU -lX11" />
<property name="rootrel.c.linker.jogl.dso" value="${rootrel.obj}/libjogl.so" />
<property name="c.linker.jogl.dso" value="${project.root}/${rootrel.c.linker.jogl.dso}" />
<property name="c.linker.jogl.flags" value="-o ${c.linker.jogl.dso}" />
diff --git a/src/net/java/games/jogl/impl/x11/X11GLContextFactory.java b/src/net/java/games/jogl/impl/x11/X11GLContextFactory.java
index 2634b7aa8..817a41017 100644
--- a/src/net/java/games/jogl/impl/x11/X11GLContextFactory.java
+++ b/src/net/java/games/jogl/impl/x11/X11GLContextFactory.java
@@ -46,6 +46,10 @@ import net.java.games.jogl.*;
import net.java.games.jogl.impl.*;
public class X11GLContextFactory extends GLContextFactory {
+ static {
+ NativeLibLoader.load();
+ }
+
public GraphicsConfiguration chooseGraphicsConfiguration(GLCapabilities capabilities,
GLCapabilitiesChooser chooser,
GraphicsDevice device) {