Skip to content

Commit

Permalink
Do not show "No Error Context" in video settings if running under Way…
Browse files Browse the repository at this point in the history
…land (#1906)

Signed-off-by: Octol1ttle <[email protected]>
  • Loading branch information
Octol1ttle authored Jul 22, 2023
1 parent 60ed88f commit 89c3c2f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import me.jellysquid.mods.sodium.client.gui.options.control.TickBoxControl;
import me.jellysquid.mods.sodium.client.gui.options.storage.MinecraftOptionsStorage;
import me.jellysquid.mods.sodium.client.gui.options.storage.SodiumOptionsStorage;
import me.jellysquid.mods.sodium.client.util.workarounds.Workarounds;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.gl.Framebuffer;
import net.minecraft.client.option.*;
Expand Down Expand Up @@ -314,7 +315,8 @@ public static OptionPage performance() {

private static boolean supportsNoErrorContext() {
GLCapabilities capabilities = GL.getCapabilities();
return capabilities.OpenGL46 || capabilities.GL_KHR_no_error;
return (capabilities.OpenGL46 || capabilities.GL_KHR_no_error)
&& !Workarounds.isWorkaroundEnabled(Workarounds.Reference.NO_ERROR_CONTEXT_UNSUPPORTED);
}

public static OptionPage advanced() {
Expand Down

0 comments on commit 89c3c2f

Please sign in to comment.