-
-
Notifications
You must be signed in to change notification settings - Fork 15
OpenGL 4.5 support
Icyllis Milica edited this page Jun 25, 2022
·
1 revision
This page will not show you how to build and install Mesa in detail.
Install Mesa 22.1.2+ MinGW or build Mesa yourself.
Install Mesa 22.1.2+, you can build Mesa yourself or find precompiled libraries.
Install MoltenVK and Mesa 22.1.2+, you can build Mesa yourself or find precompiled libraries.
To use Gallium Zink for LWJGL.
Add JVM args:
- Windows
-Dorg.lwjgl.opengl.libname=.../mesa/x64/opengl32.dll
- Linux
-Dorg.lwjgl.opengl.libname=.../mesa/lib/libGL.so.1
- macOS
-Dorg.lwjgl.opengl.libname=.../mesa/lib/libGL.1.dylib
Add environment variables: GALLIUM_DRIVER=zink
, MESA_LOADER_DRIVER_OVERRIDE=zink
.
Expected function calls: App -> Mesa -> Mesa Pipe -> Mesa Zink -> MoltenVK -> Apple Metal
This only works for applications that preload OpenGL library.