aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJeroen van Rijn <Kelimion@users.noreply.github.com>2021-10-06 22:43:33 +0200
committerJeroen van Rijn <Kelimion@users.noreply.github.com>2021-10-06 22:43:33 +0200
commitc4b4a841d68f4bde69f4e1472b7d8fa24f96a376 (patch)
tree5fb212b07e4941e164d2ea66b201158bee798ddc /tests
parent263d63aa5678276532776c129829b6a77f56bcad (diff)
png: Move metadata.
Diffstat (limited to 'tests')
-rw-r--r--tests/core/image/test_core_image.odin4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/core/image/test_core_image.odin b/tests/core/image/test_core_image.odin
index 7752cf7dc..155b69298 100644
--- a/tests/core/image/test_core_image.odin
+++ b/tests/core/image/test_core_image.odin
@@ -1504,10 +1504,8 @@ run_png_suite :: proc(t: ^testing.T, suite: []PNG_Test) -> (subtotal: int) {
passed &= test.hash == hash
if .return_metadata in test.options {
- v: ^png.Info
- if img.metadata_ptr != nil && img.metadata_type == png.Info {
- v = (^png.Info)(img.metadata_ptr)
+ if v, ok := img.metadata.(^image.PNG_Info); ok {
for c in v.chunks {
#partial switch(c.header.type) {
case .gAMA: