Minimal test program that reproduces it for me (previous screenshot was from a more complex program but the result is the same with this minimal one):
package javatests;
import org.lwjgl.LWJGLException;
import org.lwjgl.input.Keyboard;
import org.lwjgl.opengl.Display;
public class LWJGLDisplay {
public static void main(String[] args) throws LWJGLException, InterruptedException {
Display.setDisplayMode(Display.getDesktopDisplayMode());
Display.setFullscreen(true);
Display.create();
while (!Keyboard.isKeyDown(Keyboard.KEY_ESCAPE)) {
Display.update();
Thread.sleep(50);
}
}
}
Console output with -Dorg.lwjgl.util.Debug=true:
Xrandr extension version 1.3
Using Xrandr for display mode switching
XF86VidMode extension version 2.2
Initial mode: 1280 x 960 x 24 @50Hz
Mode 0: 1280x960 @50
Pixel format info: r = 8, g = 8, b = 8, a = 0, depth = 24, stencil = 0, sample buffers = 0, samples = 0
Using NetWM for fullscreen window
Could not locate symbol glVertexWeighthNV
XF86VidMode extension version 2.2
This is the Display init code of the game from the screenshot above:
private void initDisplay() throws LWJGLException {
// Set display mode.
final DisplayMode[] modes = Display.getAvailableDisplayModes();
for (DisplayMode m : modes) {
if (m.getWidth() == displayConfig.getWidth() &&
m.getHeight() == displayConfig.getHeight() &&
m.getBitsPerPixel() == displayConfig.getBitsPerPixel() &&
m.getFrequency() == displayConfig.getFrequency()) {
Display.setDisplayMode(m);
}
// TODO handle case if no mode is found.
}
// Set various properties.
Display.setTitle(title);
Display.setFullscreen(displayConfig.isFullscreen());
Display.setVSyncEnabled(displayConfig.isVsync());
// Create display with or without AA.
if (displayConfig.isAntialiasing()) {
try {
final PixelFormat pf =
new PixelFormat(displayConfig.getBitsPerPixel(), 8, 16, 8, 2);
Display.create(pf);
} catch (Exception ex) {
Sys.alert("AA error",
"Failed to initialise display with anti-aliasing, trying without.");
System.out.println(ex);
Display.create();
}
} else {
Display.create();
}
}
Console output of the game:
Xrandr extension version 1.3
Using Xrandr for display mode switching
XF86VidMode extension version 2.2
Initial mode: 1280 x 960 x 24 @50Hz
Removed 0 duplicate displaymodes
Mode 0: 1280x960 @50
Mode 1: 1280x960 @51
Mode 2: 1152x864 @52
Mode 3: 1152x864 @53
Mode 4: 1152x864 @54
Mode 5: 1152x864 @55
Mode 6: 1152x864 @56
Mode 7: 1152x864 @57
Mode 8: 1152x864 @58
Mode 9: 1024x768 @59
Pixel format info: r = 8, g = 8, b = 8, a = 0, depth = 24, stencil = 0, sample buffers = 0, samples = 0
Using NetWM for fullscreen window
Could not locate symbol glVertexWeighthNV
getPathFromClassLoader: searching for: openal
Failed to locate findLibrary method: java.lang.NoSuchMethodException: sun.misc.Launcher$AppClassLoader.findLibrary(java.lang.String)
Failed to locate findLibrary method: java.lang.NoSuchMethodException: java.net.URLClassLoader.findLibrary(java.lang.String)
Failed to locate findLibrary method: java.lang.NoSuchMethodException: java.security.SecureClassLoader.findLibrary(java.lang.String)
getPathFromClassLoader: searching for: lwjgl
Failed to locate findLibrary method: java.lang.NoSuchMethodException: sun.misc.Launcher$AppClassLoader.findLibrary(java.lang.String)
Failed to locate findLibrary method: java.lang.NoSuchMethodException: java.net.URLClassLoader.findLibrary(java.lang.String)
Failed to locate findLibrary method: java.lang.NoSuchMethodException: java.security.SecureClassLoader.findLibrary(java.lang.String)
getPathFromClassLoader: searching for: lwjgl
Failed to locate findLibrary method: java.lang.NoSuchMethodException: sun.misc.Launcher$AppClassLoader.findLibrary(java.lang.String)
Failed to locate findLibrary method: java.lang.NoSuchMethodException: java.net.URLClassLoader.findLibrary(java.lang.String)
Failed to locate findLibrary method: java.lang.NoSuchMethodException: java.security.SecureClassLoader.findLibrary(java.lang.String)
getPathFromClassLoader: searching for: lwjgl
Failed to locate findLibrary method: java.lang.NoSuchMethodException: sun.misc.Launcher$AppClassLoader.findLibrary(java.lang.String)
Failed to locate findLibrary method: java.lang.NoSuchMethodException: java.net.URLClassLoader.findLibrary(java.lang.String)
Failed to locate findLibrary method: java.lang.NoSuchMethodException: java.security.SecureClassLoader.findLibrary(java.lang.String)
Found 9 OpenAL paths
Testing '/home/dev/lib/lwjgl-2.5/native/linux/libopenal64.so'
Failed to load /home/dev/lib/lwjgl-2.5/native/linux/libopenal64.so: Could not load OpenAL library
Testing '/home/dev/projects/small_projects/SpaceFolds/libopenal64.so'
Failed to load /home/dev/projects/small_projects/SpaceFolds/libopenal64.so: Could not load OpenAL library
Testing 'libopenal64.so'
Failed to load libopenal64.so: Could not load OpenAL library
Testing '/home/dev/lib/lwjgl-2.5/native/linux/libopenal.so'
Found OpenAL at '/home/dev/lib/lwjgl-2.5/native/linux/libopenal.so'
XF86VidMode extension version 2.2