From b53943acfd7774d18f35ca9e4caa9b5f1b6dde0b Mon Sep 17 00:00:00 2001 From: BianXiao <137746769+mcbianxiao@users.noreply.github.com> Date: Tue, 17 Sep 2024 21:33:25 +0800 Subject: [PATCH] Update SodiumGameOptionPages.java --- .../mods/sodium/client/gui/SodiumGameOptionPages.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/jellysquid/mods/sodium/client/gui/SodiumGameOptionPages.java b/src/main/java/me/jellysquid/mods/sodium/client/gui/SodiumGameOptionPages.java index b888ec59f4..e6a3a155a0 100644 --- a/src/main/java/me/jellysquid/mods/sodium/client/gui/SodiumGameOptionPages.java +++ b/src/main/java/me/jellysquid/mods/sodium/client/gui/SodiumGameOptionPages.java @@ -326,7 +326,7 @@ public static OptionPage advanced() { .setName(Text.translatable("sodium.options.use_persistent_mapping.name")) .setTooltip(Text.translatable("sodium.options.use_persistent_mapping.tooltip")) .setControl(TickBoxControl::new) - .setImpact(OptionImpact.MEDIUM) + .setEnabled(MappedStagingBuffer.isSupported(RenderDevice.INSTANCE)) .setBinding((opts, value) -> opts.advanced.useAdvancedStagingBuffers = value, opts -> opts.advanced.useAdvancedStagingBuffers) .setFlags(OptionFlag.REQUIRES_RENDERER_RELOAD)