clean up deprecated usage

This commit is contained in:
Tuomas Katajisto 2026-07-26 13:01:52 +03:00
parent 1829a6796f
commit 651984ba43
3 changed files with 4 additions and 6 deletions

View File

@ -332,7 +332,6 @@ parse_object :: (str: string) -> result: JSON_Object, remainder: string, success
return result, remainder, true; return result, remainder, true;
} }
init(*result, 32);
while true { while true {
if remainder[0] != #char "\"" return result, remainder, false; if remainder[0] != #char "\"" return result, remainder, false;

View File

@ -540,7 +540,6 @@ parse_object :: (str: string, slot: *u8, info: *Type_Info_Struct, ignore_unknown
// @Speed: Building this table every time is pretty silly. // @Speed: Building this table every time is pretty silly.
// We should probably either not build it at all or cache it somewhere. // We should probably either not build it at all or cache it somewhere.
member_table: Table(string, Member_Offset); member_table: Table(string, Member_Offset);
init(*member_table);
defer deinit(*member_table); defer deinit(*member_table);
if info fill_member_table(*member_table, info, rename); if info fill_member_table(*member_table, info, rename);

View File

@ -1387,12 +1387,12 @@ create_ssao_images :: () {
g_postprocess_attach_b = sg_make_attachments(*attachmentsDescB); g_postprocess_attach_b = sg_make_attachments(*attachmentsDescB);
bloom_levels := sg_image.[g_bloom_down_1, g_bloom_down_2, g_bloom_down_3, g_bloom_down_4, g_bloom_up_3, g_bloom_up_2, g_bloom_up_1]; bloom_levels := sg_image.[g_bloom_down_1, g_bloom_down_2, g_bloom_down_3, g_bloom_down_4, g_bloom_up_3, g_bloom_up_2, g_bloom_up_1];
for * bloom_levels { if it.id != INVALID_ID then sg_destroy_image(<<it); } for * bloom_levels { if it.id != INVALID_ID then sg_destroy_image((.*)it); }
make_bloom_level :: (img: *sg_image, attach: *sg_attachments, width: s32, height: s32) { make_bloom_level :: (img: *sg_image, attach: *sg_attachments, width: s32, height: s32) {
<<img = sg_make_image(*(sg_image_desc.{ width=width, height=height, pixel_format=.RGBA16F, render_target=true, sample_count=1 })); (.*)img = sg_make_image(*(sg_image_desc.{ width=width, height=height, pixel_format=.RGBA16F, render_target=true, sample_count=1 }));
sg_destroy_attachments(<<attach); sg_destroy_attachments((.*)attach);
<<attach = sg_make_attachments(*(sg_attachments_desc.{ colors[0].image = <<img })); (.*)attach = sg_make_attachments(*(sg_attachments_desc.{ colors[0].image = (.*)img }));
} }
make_bloom_level(*g_bloom_down_1, *g_bloom_down_1_attach, w/2, h/2); make_bloom_level(*g_bloom_down_1, *g_bloom_down_1_attach, w/2, h/2);