Skip to content

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

Windows

Install Mesa 22.1.2+ MinGW or build Mesa yourself.

Linux

Install Mesa 22.1.2+, you can build Mesa yourself or find precompiled libraries.

macOS

Install MoltenVK and Mesa 22.1.2+, you can build Mesa yourself or find precompiled libraries.

Enable Zink

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.

Clone this wiki locally