Commit 2d4bda1
committed
fix(Library/Sys): Load pojavexec at the right time
Usually LWJGL3 programs would run Library.initialize() to make sure
LWJGL is loaded first. We put pojavexec here because it provides methods
that modules may need. Currently GLFW and Vulkan modules have methods
that are needed by pojavexec, those being `getVulkanDriverHandle()` and
`nativeInitializeGLFWNativeBridge()` the latter of which is found used
in the Amethyst-Android repository.
LWJGL2 programs run through LWJGLX load Sys.initialize() instead so we
also add it there for the same reason.1 parent fe86505 commit 2d4bda1
2 files changed
Lines changed: 20 additions & 3 deletions
File tree
- modules/lwjgl
- core/src/main/java/org/lwjgl/system
- lwjglx/src/main/java/org/lwjgl
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
58 | 68 | | |
59 | 69 | | |
60 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
18 | 25 | | |
19 | 26 | | |
20 | 27 | | |
| |||
0 commit comments