diff --git a/base/sources/kong/kong_hlsl.c b/base/sources/kong/kong_hlsl.c index e5f77d02..8ad24645 100644 --- a/base/sources/kong/kong_hlsl.c +++ b/base/sources/kong/kong_hlsl.c @@ -1236,7 +1236,7 @@ static void write_functions(char *hlsl, size_t *offset, shader_stage stage, func } static char *hlsl_export_vertex2(api_kind d3d, function *main, bool debug) { - static char _buffer[1024 * 1024]; + static char _buffer[1024 * 1024 * 8]; char *hlsl = &_buffer[0]; size_t offset = 0; @@ -1258,7 +1258,7 @@ static char *hlsl_export_vertex2(api_kind d3d, function *main, bool debug) { } static char *hlsl_export_fragment2(api_kind d3d, function *main, bool debug) { - static char _buffer[1024 * 1024]; + static char _buffer[1024 * 1024 * 8]; char *hlsl = &_buffer[0]; size_t offset = 0; diff --git a/base/sources/kong/kong_metal.c b/base/sources/kong/kong_metal.c index 3ebbd127..c8304d6c 100644 --- a/base/sources/kong/kong_metal.c +++ b/base/sources/kong/kong_metal.c @@ -815,7 +815,7 @@ static void write_functions(char *code, size_t *offset) { } static char *metal_export_everything(char *directory) { - char *metal = (char *)calloc(1024 * 1024, 1); + char *metal = (char *)calloc(1024 * 1024 * 8, 1); debug_context context = {0}; check(metal != NULL, context, "Could not allocate Metal string"); size_t offset = 0; diff --git a/base/sources/kong/kong_wgsl.c b/base/sources/kong/kong_wgsl.c index b6e03349..9f799232 100644 --- a/base/sources/kong/kong_wgsl.c +++ b/base/sources/kong/kong_wgsl.c @@ -1054,7 +1054,7 @@ static void write_functions(char *code, size_t *offset, shader_stage stage, func } static char *wgsl_export_vertex2(function *main) { - char *wgsl = (char *)calloc(1024 * 1024, 1); + char *wgsl = (char *)calloc(1024 * 1024 * 8, 1); debug_context context = {0}; check(wgsl != NULL, context, "Could not allocate the wgsl string"); @@ -1087,7 +1087,7 @@ static char *wgsl_export_vertex2(function *main) { } static char *wgsl_export_fragment2(function *main) { - char *wgsl = (char *)calloc(1024 * 1024, 1); + char *wgsl = (char *)calloc(1024 * 1024 * 8, 1); debug_context context = {0}; check(wgsl != NULL, context, "Could not allocate the wgsl string");