File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,9 +12,6 @@ public abstract class Platform {
1212 private static final String activeDE = determineDE ();
1313
1414 public static void init () {
15- // Increase stack size to 256 KB to prevent out of stack error on nvidia driver
16- Configuration .STACK_SIZE .set (256 );
17-
1815 GLFW .glfwInitHint (GLFW_PLATFORM , activePlat );
1916 LOGGER .info ("Selecting Platform: {}" , getStringFromPlat (activePlat ));
2017 LOGGER .info ("GLFW: {}" , GLFW .glfwGetVersionString ());
Original file line number Diff line number Diff line change 1+ package net .vulkanmod .mixin .fix ;
2+
3+ import net .minecraft .client .main .Main ;
4+ import org .lwjgl .system .Configuration ;
5+ import org .spongepowered .asm .mixin .Mixin ;
6+ import org .spongepowered .asm .mixin .injection .At ;
7+ import org .spongepowered .asm .mixin .injection .Inject ;
8+ import org .spongepowered .asm .mixin .injection .callback .CallbackInfo ;
9+
10+ @ Mixin (Main .class )
11+ public class MainMixin {
12+
13+ @ Inject (method = "main" , at =@ At ("HEAD" ))
14+ private static void inj1 (String [] strings , CallbackInfo ci ) {
15+ // Increase stack size to 256 KB to prevent out of stack error on nvidia driver
16+ Configuration .STACK_SIZE .set (256 );
17+ }
18+ }
Original file line number Diff line number Diff line change 2929 " debug.DebugScreenEntriesM" ,
3030 " debug.KeyboardHandlerM" ,
3131
32+ " fix.MainMixin" ,
33+
3234 " matrix.Matrix4fM" ,
3335 " matrix.PoseAccessor" ,
3436
You can’t perform that action at this time.
0 commit comments