From a43c1eb186f35aee1009b01107615d95bc0ad9eb Mon Sep 17 00:00:00 2001 From: Ed_ Date: Thu, 26 Jun 2025 23:11:11 -0400 Subject: [PATCH] use stream instead of dynamic for bufer updates (sokol backend) --- backend/sokol/backend_sokol.odin | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/sokol/backend_sokol.odin b/backend/sokol/backend_sokol.odin index 6963775..5dd3726 100644 --- a/backend/sokol/backend_sokol.odin +++ b/backend/sokol/backend_sokol.odin @@ -65,13 +65,13 @@ setup_gfx_objects :: proc( ctx : ^Context, ve_ctx : ^ve.Context, vert_cap, index ctx.draw_list_vbuf = gfx.make_buffer( Buffer_Desciption { size = cast(uint)(size_of([4]f32) * vert_cap), - usage = Buffer_Usage { vertex_buffer = true, dynamic_update = true, immutable = false }, + usage = Buffer_Usage { vertex_buffer = true, stream_update = true, immutable = false }, }) assert( gfx.query_buffer_state( ctx.draw_list_vbuf) < Resource_State.FAILED, "Failed to make draw_list_vbuf" ) ctx.draw_list_ibuf = gfx.make_buffer( Buffer_Desciption { size = cast(uint)(size_of(u32) * index_cap), - usage = { index_buffer = true, dynamic_update = true, immutable = false }, + usage = { index_buffer = true, stream_update = true, immutable = false }, }) assert( gfx.query_buffer_state( ctx.draw_list_ibuf) < Resource_State.FAILED, "Failed to make draw_list_iubuf" )