Prefer OpenGL

This Fabric client mod rewrites options.txt so the renderer preference is set to OpenGL.

138

Prefer OpenGL

Prefer OpenGL

This project includes loader-specific entrypoints for:

- Fabric - Quilt (in development) - Forge - NeoForge (in development)

All variants call the same shared logic to force an OpenGL renderer preference by editing `options.txt`.

Shared behavior

On client startup, each loader entrypoint ensures one of these keys is set to OpenGL:

- `graphicsApiPreference:prefer_opengl` - `graphicsApi:prefer_opengl` (legacy fallback)

If neither exists, it appends `graphicsApiPreference:prefer_opengl`.

code block

Important note!

This mod fixes crash on Amethyst Launcher (and other mobile java launchers) which does have vulkan but doesn't have some librarys. So, Minecraft switchs to Vulkan API and crashes. More ever what this mod does is it forces OpenGL as the renderer API. And if you're device supports Vulkan API please don't use this mod first try if Vulkan works or not.

Amethyst launcher

ADS