diff --git a/Backends/Graphics5/Direct3D12/Sources/kinc/backend/graphics5/indexbuffer.c.h b/Backends/Graphics5/Direct3D12/Sources/kinc/backend/graphics5/indexbuffer.c.h index 8438590bc..07c22625e 100644 --- a/Backends/Graphics5/Direct3D12/Sources/kinc/backend/graphics5/indexbuffer.c.h +++ b/Backends/Graphics5/Direct3D12/Sources/kinc/backend/graphics5/indexbuffer.c.h @@ -58,8 +58,13 @@ void kinc_g5_index_buffer_init(kinc_g5_index_buffer_t *buffer, int count, kinc_g } void kinc_g5_index_buffer_destroy(kinc_g5_index_buffer_t *buffer) { - buffer->impl.index_buffer->Release(); + if (buffer->impl.index_buffer != NULL) { + buffer->impl.index_buffer->Release(); + buffer->impl.index_buffer = NULL; + } + buffer->impl.upload_buffer->Release(); + buffer->impl.upload_buffer = NULL; } static int kinc_g5_internal_index_buffer_stride(kinc_g5_index_buffer_t *buffer) { diff --git a/Tools/linux_arm b/Tools/linux_arm index 4ae818481..5ffa19ec9 160000 --- a/Tools/linux_arm +++ b/Tools/linux_arm @@ -1 +1 @@ -Subproject commit 4ae818481742657c49164c2baad9712f21aa4e5f +Subproject commit 5ffa19ec9bb354ed62a6d4b3e5bfe97581789755 diff --git a/Tools/linux_arm64 b/Tools/linux_arm64 index cda97bc0d..1cf3b660b 160000 --- a/Tools/linux_arm64 +++ b/Tools/linux_arm64 @@ -1 +1 @@ -Subproject commit cda97bc0dc527397c9a7468c2981719b705f06d4 +Subproject commit 1cf3b660b757e845ec98e5edea1022e71cf49a13 diff --git a/Tools/linux_x64 b/Tools/linux_x64 index 1dac53efc..6392a8b40 160000 --- a/Tools/linux_x64 +++ b/Tools/linux_x64 @@ -1 +1 @@ -Subproject commit 1dac53efcac1dd374f99412cf03e275de6532e24 +Subproject commit 6392a8b402c56ee1e079d8125724ae32862350fb diff --git a/Tools/macos b/Tools/macos index b4d4cec8b..551d51c3c 160000 --- a/Tools/macos +++ b/Tools/macos @@ -1 +1 @@ -Subproject commit b4d4cec8b4593eaaf488fb2ecfbf45bfcd88a697 +Subproject commit 551d51c3c536d3db0b07ec943b0889709078203f diff --git a/Tools/windows_x64 b/Tools/windows_x64 index 0ca682655..a5168197f 160000 --- a/Tools/windows_x64 +++ b/Tools/windows_x64 @@ -1 +1 @@ -Subproject commit 0ca682655237f32a66a9372bffc08eeb8f7720e7 +Subproject commit a5168197f60a8cf384229cf64f57057b60063817