fix some bugs with -disable-assert

This commit is contained in:
Laytan Laats
2024-07-16 18:44:18 +02:00
parent 03426175ae
commit 28fac62a02
6 changed files with 15 additions and 9 deletions
+2 -1
View File
@@ -22,5 +22,6 @@ wgpu_alloc :: proc "contextless" (size: i32) -> [^]byte {
@(private="file", export)
wgpu_free :: proc "contextless" (ptr: rawptr) {
context = g_context
assert(free(ptr) == nil, "wgpu_free failed")
err := free(ptr)
assert(err == nil, "wgpu_free failed")
}