mojira.dev
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.

Comments 2

Does this have any effect on gameplay?

I don't believe so, but it is a minor issue that may make debugging issues related to the windowing system harder.

gudenau

gegy

Plausible

Platform

Important

Crash, Debug

1.20.1

23w40a

Retrieved