Mojira Archive
MC-264748

GLX._initGlfw Treats Pointer as a String

There is a small bug in `GLX._initGlfw`, the GLFW error callback contains the following code:

```Java

(code, pointer) -> list.add(String.format(Locale.ROOT, "GLFW error during init: [0x%X]%s", code, pointer))

```

when it should be
```Java

(code, pointer) -> list.add(String.format(Locale.ROOT, "GLFW error during init: [0x%X]%s", code, MemoryUtil.memUTF8Safe(pointer)))

```

or similar.

Fixed

gudenau

[Mojang] Gegy

2023-08-09, 08:30 PM

2023-09-21, 04:51 PM

2023-09-21, 04:51 PM

2

4

Plausible

Important

Platform

Crash, Debug

1.20.1

23w40a