Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix 'OpenGL is not supported' Exception #3202

Merged
merged 1 commit into from
Oct 3, 2020
Merged

fix 'OpenGL is not supported' Exception #3202

merged 1 commit into from
Oct 3, 2020

Conversation

CrispyXYZ
Copy link
Contributor

Exception

@yairm210
Copy link
Owner

Huh
OK
What operating system is this for?

@yairm210
Copy link
Owner

Please leave a comment on that line explaining what problem it solved is what I'm saying :)

@@ -32,6 +32,8 @@ internal object DesktopLauncher {

@JvmStatic
fun main(arg: Array<String>) {

System.setProperty("org.lwjgl.opengl.Display.allowSoftwareOpenGL", "true")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SOME devices can not run Unciv because software OpenGL mode is not allowed.
Put this code System.setProperty("org.lwjgl.opengl.Display.allowSoftwareOpenGL", "true");
The problem will be solved. This will allow libgdx to run as software openGL mode.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I'm asking which devices. Is this a software problem, certain OS's? A hardware one?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is a hardware problem.Libgdx requires at least OpenGL 1.5 on the desktop.But SOME people don't know how to update the OpenGL.So I suggest putting the code.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1st generations Intel HD Graphics running under Windows 10 with Java 8u60 and newer. LWJGL/lwjgl#119
Downgrading java to 8u51 solved problem for few people in discord.
This exception also can be caused by outdated or incompatible driver.
There was 1 person in discord with this problem recently. He had intel B960 and windows updated drivers to 9.17.10.4459 (Windows 10 does not have official GPU support for Sandy Bridge); downgrading drivers to 4229 - latest compatible with his intel GPU - solved the problem

@yairm210 yairm210 merged commit ae182fb into yairm210:master Oct 3, 2020
@CrispyXYZ CrispyXYZ deleted the patch-2 branch February 9, 2021 02:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants