aboutsummaryrefslogtreecommitdiff
path: root/src/fw/fw.odin
diff options
context:
space:
mode:
authoriamcheeseman <[email protected]>2026-03-03 22:43:40 -0500
committeriamcheeseman <[email protected]>2026-03-03 22:43:40 -0500
commitccd4b29cc358d89d231e602522ca7b35d178b120 (patch)
tree5fabdd73e9430dd45fb9ad01776afa8b050629d4 /src/fw/fw.odin
parente84dfb90fca869d999297e54538bdfa86e4406aa (diff)
finally fix that wretched asan false postive
Diffstat (limited to 'src/fw/fw.odin')
-rw-r--r--src/fw/fw.odin8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/fw/fw.odin b/src/fw/fw.odin
index 9ab1918..8616df7 100644
--- a/src/fw/fw.odin
+++ b/src/fw/fw.odin
@@ -69,7 +69,11 @@ deinit :: proc() {
_renderer_deinit()
glfw.DestroyWindow(window)
- glfw.Terminate()
+
+ // Asan gives a false positive, so disable this when asan is in use
+ when .Address not_in ODIN_SANITIZER_FLAGS {
+ glfw.Terminate()
+ }
}
@(require_results)
@@ -93,8 +97,6 @@ next_frame :: proc() -> bool {
glfw.SwapBuffers(window)
glfw.PollEvents()
- // log.debugf("Draw calls: %v", renderer.draw_calls_count)
-
// Begin next frame
time := get_time()