Linux: Don't close the static Display connection, to avoid crashes with some dri drivers

This commit is contained in:
Elias Naur 2007-08-26 22:07:24 +00:00
parent 2f425da408
commit 9fc5b5273b
1 changed files with 7 additions and 2 deletions

View File

@ -233,14 +233,19 @@ final class LinuxDisplay implements DisplayImplementation {
}
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;