Attempt to use a more compatible method to initialize stencil support.

In case the separate attachments don't work for everyone, there's a new setting to choose the combined attachment.
This commit is contained in:
David Quintana committed 2020-07-03 14:40:21 +02:00
1 parent a690a7526a
commit 8e5138da27
3 files changed
+16 -5

No files matched your search

@@ -139,6 +139,8 @@ public class ForgeConfig
public final BooleanValue showLoadWarnings;
public final BooleanValue useCombinedDepthStencilAttachment;
Client(ForgeConfigSpec.Builder builder) {
builder.comment("Client only settings, mostly things related to rendering")
.push("client");
@@ -184,6 +186,11 @@ public class ForgeConfig
.translation("forge.configgui.showLoadWarnings")
.define("showLoadWarnings", true);
useCombinedDepthStencilAttachment = builder
.comment("Set to true to use a combined DEPTH_STENCIL attachment instead of two separate ones.")
.translation("forge.configgui.useCombinedDepthStencilAttachment")
.define("useCombinedDepthStencilAttachment", false);
builder.pop();
}
}