Prefer OpenGL

Quick rating

Community listing page, reviews here may not be monitored by the author.

Prefer OpenGL

By MaxJubayerYTOwner

No reviews yet

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

Mod Loaders
Minecraft
26.2

About

Description

Prefer OpenGL

This project includes loader-specific entrypoints for:

  • Fabric
  • Quilt
  • 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

Prefer OpenGL

This project includes loader-specific entrypoints for:

  • Fabric
  • Quilt
  • 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