LWJGL / lwjgl

[LEGACY] LWJGL 2.X - The Lightweight Java Game Library.
http://legacy.lwjgl.org/
545 stars 207 forks source link

[Linux] OpenGL finding problem 2.9.2+ #128

Open Kron4ek opened 8 years ago

Kron4ek commented 8 years ago

2.9.2, 2.9.3 and 2.9.4 versions of LWJGL have some problem with opengl finding. Because of this, does not run Project Zomboid and Minecraft (no opengl context found in the current thread). But the version 2.9.1 has no such problem. Perhaps it is a bug?

I'm using Debian 8 Jessie with Nvidia 340.96

Spasi commented 8 years ago

Do you have Mesa installed in your system? If yes, does 2.9.2+ work if you uninstall Mesa?

Kron4ek commented 8 years ago

No, Mesa is not installed.

Spasi commented 8 years ago

I went through the change log from 2.9.1 to 2.9.2 and couldn't find anything that might be responsible. Most Linux-related changes had to do with Xrandr.

Would you be able to clone LWJGL, build it locally and try one of the OpenGL demos?

Kron4ek commented 8 years ago

I found a solution. It was necessary to install Xrandr. So, versions 2.9.2+ require Xrandr (for all display mode changing as written in full changelog) and older versions do not require it.

ishitatsuyuki commented 8 years ago

Yes, it depends on Xrandr or throws out-of-bound. I have confirmed this and I'd like to bump this for a fix.