We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7534474 commit 84c741bCopy full SHA for 84c741b
core/image/bmp/bmp.odin
@@ -632,15 +632,10 @@ skip_space :: proc(ctx: ^$C, bytes_to_skip: int) -> (err: Error) {
632
return
633
}
634
635
-/*
636
- Cleanup of image-specific data.
637
-*/
+// Cleanup of image-specific data.
638
destroy :: proc(img: ^Image) {
639
if img == nil {
640
- /*
641
- Nothing to do.
642
- Load must've returned with an error.
643
- */
+ // Nothing to do. Load must've returned with an error.
644
645
646
@@ -649,4 +644,9 @@ destroy :: proc(img: ^Image) {
649
free(v)
650
651
free(img)
647
+}
648
+
+@(init, private)
+_register :: proc() {
+ image.register(.BMP, load_from_bytes, destroy)
652
0 commit comments