瀏覽代碼

png: Channel helper metadata.

Jeroen van Rijn 4 年之前
父節點
當前提交
b4b53aeb71
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      core/image/common.odin

+ 1 - 2
core/image/common.odin

@@ -319,8 +319,7 @@ return_single_channel :: proc(img: ^Image, channel: Channel) -> (res: ^Image, ok
 	res.depth         = img.depth
 	res.depth         = img.depth
 	res.pixels        = t
 	res.pixels        = t
 	res.background    = img.background
 	res.background    = img.background
-	// res.metadata_ptr  = img.metadata_ptr
-	// res.metadata_type = img.metadata_type
+	res.metadata      = img.metadata
 
 
 	return res, true
 	return res, true
 }
 }