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
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions desktop/src/com/unciv/app/desktop/DesktopLauncher.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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


packImages()

Expand Down