clean up deprecated usage
This commit is contained in:
parent
1829a6796f
commit
651984ba43
@ -332,7 +332,6 @@ parse_object :: (str: string) -> result: JSON_Object, remainder: string, success
|
||||
return result, remainder, true;
|
||||
}
|
||||
|
||||
init(*result, 32);
|
||||
while true {
|
||||
if remainder[0] != #char "\"" return result, remainder, false;
|
||||
|
||||
|
||||
@ -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.
|
||||
// We should probably either not build it at all or cache it somewhere.
|
||||
member_table: Table(string, Member_Offset);
|
||||
init(*member_table);
|
||||
defer deinit(*member_table);
|
||||
|
||||
if info fill_member_table(*member_table, info, rename);
|
||||
|
||||
@ -1387,12 +1387,12 @@ create_ssao_images :: () {
|
||||
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];
|
||||
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) {
|
||||
<<img = sg_make_image(*(sg_image_desc.{ width=width, height=height, pixel_format=.RGBA16F, render_target=true, sample_count=1 }));
|
||||
sg_destroy_attachments(<<attach);
|
||||
<<attach = sg_make_attachments(*(sg_attachments_desc.{ colors[0].image = <<img }));
|
||||
(.*)img = sg_make_image(*(sg_image_desc.{ width=width, height=height, pixel_format=.RGBA16F, render_target=true, sample_count=1 }));
|
||||
sg_destroy_attachments((.*)attach);
|
||||
(.*)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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user