Apply fix to QOI decoder as well.

This commit is contained in:
Jeroen van Rijn
2024-05-18 19:41:07 +02:00
parent 5b92425e93
commit 58a1bb32e5
-1
View File
@@ -240,7 +240,6 @@ load_from_context :: proc(ctx: ^$C, options := Options{}, allocator := context.a
*/ */
seen: [64]RGBA_Pixel seen: [64]RGBA_Pixel
pix := RGBA_Pixel{0, 0, 0, 255} pix := RGBA_Pixel{0, 0, 0, 255}
seen[qoi_hash(pix)] = pix
pixels := img.pixels.buf[:] pixels := img.pixels.buf[:]
decode: for len(pixels) > 0 { decode: for len(pixels) > 0 {