From 525ca581a80b9548ad66f883a506eb8af0640158 Mon Sep 17 00:00:00 2001 From: Katajisto Date: Sun, 13 Jul 2025 13:06:27 +0300 Subject: [PATCH] work --- first.jai | 1 + src/editor/trile_editor.jai | 3 --- src/trile.jai | 1 + 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/first.jai b/first.jai index e60b05e..7c6bd21 100644 --- a/first.jai +++ b/first.jai @@ -91,6 +91,7 @@ "modules/sokol-jai/sokol/stbi/stb_image.a", "-o", "dist/index.html", "-sSTACK_SIZE=10MB", + "-sALLOW_MEMORY_GROWTH", "-sERROR_ON_UNDEFINED_SYMBOLS=1", "-sMEMORY64", "-sMAX_WEBGL_VERSION=2", "--js-library=src/platform_specific/runtime.js", "--shell-file=src/platform_specific/shell.html", diff --git a/src/editor/trile_editor.jai b/src/editor/trile_editor.jai index a12b99a..a306198 100644 --- a/src/editor/trile_editor.jai +++ b/src/editor/trile_editor.jai @@ -246,7 +246,6 @@ draw_trile :: () { hovered_trixel_y = -1; hovered_trixel_z = -1; - print("BURGER!\n"); for x: 0..15 { for y: 0..15 { for z: 0..15 { @@ -261,7 +260,6 @@ draw_trile :: () { } } } - print("BURGER!\n"); trixel_count : s32 = 0; @@ -290,7 +288,6 @@ draw_trile :: () { } } - print("BURGER!\n"); sg_update_buffer(gPipelines.trixel.bind.vertex_buffers[2], *(sg_range.{ ptr = trixels.data, size = size_of(type_of(trixels)), diff --git a/src/trile.jai b/src/trile.jai index 039f31c..077b21c 100644 --- a/src/trile.jai +++ b/src/trile.jai @@ -40,6 +40,7 @@ set_trile_gfx :: (name: string, gfx: Trile_GFX, skip_preexist_check: bool = fals if success { sg_destroy_buffer(old_gfx.vertex_buffer); sg_destroy_buffer(old_gfx.normal_buffer); + print("Destroyed old GFX buffers for trile: %\n", name); } } table_set(*trile_gfx_table, name, gfx);