LWJGL / lwjgl3

LWJGL is a Java library that enables cross-platform access to popular native APIs useful in the development of graphics (OpenGL, Vulkan, bgfx), audio (OpenAL, Opus), parallel computing (OpenCL, CUDA) and XR (OpenVR, LibOVR, OpenXR) applications.
https://www.lwjgl.org
BSD 3-Clause "New" or "Revised" License
4.67k stars 631 forks source link

Missing functions in GL capabilities when using locale with non-Arabic numerals #779

Closed boq closed 1 year ago

boq commented 1 year ago

Version

3.3.1

Platform

Windows x64

JDK

Microsoft OpenJDK 17.0.3

Module

OpenGL

Bug description

GLCapabilities is missing entries for "basic" functions like glEnable when locale is set to one with non-Arabic numerals.

Cause:

Stacktrace or crash log output

FATAL ERROR in native method: Thread[Render thread,5,main]: No context is current or a function that is not available in the current context was called. The JVM will abort execution.
    at org.lwjgl.opengl.GL11C.glEnable(Native Method)
    at org.lwjgl.opengl.GL11.glEnable(GL11.java:724)
Spasi commented 1 year ago

Thank you @boq!