summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorewy <ewy0@protonmail.com>2026-08-13 12:36:25 +0200
committerewy <ewy0@protonmail.com>2026-08-13 12:36:25 +0200
commitf0557060160fa722799bb52784944ecf0751d5c9 (patch)
treebd69bce9f6f4027be86a23a8de43eed9cab32e46
parentaae0a1581c0dd028f53f28f2d8fe54b18dce813b (diff)
add quit logic :)main
-rw-r--r--main.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/main.go b/main.go
index 7905807..43a99e2 100644
--- a/main.go
+++ b/main.go
@@ -1,5 +1,11 @@
package main
-func main() {
+import (
+ "github.com/Zyko0/go-sdl3/bin/binsdl"
+ "github.com/Zyko0/go-sdl3/sdl"
+)
+func main() {
+ defer binsdl.Load().Unload()
+ defer sdl.Quit()
}