|
From: <eli...@us...> - 2007-08-27 15:51:36
|
Revision: 2888
http://java-game-lib.svn.sourceforge.net/java-game-lib/?rev=2888&view=rev
Author: elias_naur
Date: 2007-08-26 15:07:24 -0700 (Sun, 26 Aug 2007)
Log Message:
-----------
Linux: Don't close the static Display connection, to avoid crashes with some dri drivers
Modified Paths:
--------------
trunk/LWJGL/src/java/org/lwjgl/opengl/LinuxDisplay.java
Modified: trunk/LWJGL/src/java/org/lwjgl/opengl/LinuxDisplay.java
===================================================================
--- trunk/LWJGL/src/java/org/lwjgl/opengl/LinuxDisplay.java 2007-08-26 20:47:29 UTC (rev 2887)
+++ trunk/LWJGL/src/java/org/lwjgl/opengl/LinuxDisplay.java 2007-08-26 22:07:24 UTC (rev 2888)
@@ -233,14 +233,19 @@
}
static void decDisplay() {
- display_connection_usage_count--;
+ /*
+ * Some drivers (at least some versions of the radeon dri driver)
+ * don't like it when the display is closed and later re-opened,
+ * so we'll just let the singleton display connection leak.
+ */
+/* display_connection_usage_count--;
if (display_connection_usage_count < 0)
throw new InternalError("display_connection_usage_count < 0: " + display_connection_usage_count);
if (display_connection_usage_count == 0) {
closeDisplay(display);
display = 0;
GLContext.unloadOpenGLLibrary();
- }
+ }*/
}
static native long openDisplay() throws LWJGLException;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|