Fixed the depth values in the doc file, made some info more clear
This commit is contained in:
1 parent
df233aee94
commit
74d3bcec05
2 files changed
+11
-10
No files matched your search
@@ -109,7 +109,7 @@ save_to_buffer :: proc(img: ^Image, custom_info: Info = {}, allocator := context
|
||||
// using info so we can just talk about the header
|
||||
using info
|
||||
|
||||
//? validation
|
||||
// validation
|
||||
if header.format in (PBM + PGM + Formats{.Pf}) && img.channels != 1 \
|
||||
|| header.format in (PPM + Formats{.PF}) && img.channels != 3 {
|
||||
err = .Invalid_Number_Of_Channels
|
||||
|
||||
Reference in new issue
Block a user