Merge pull request #3602 from Kelimion/qoifix

Apply fix to QOI decoder as well.
This commit is contained in:
Jeroen van Rijn
2024-05-18 19:48:37 +02:00
committed by GitHub
+1 -2
View File
@@ -239,8 +239,7 @@ load_from_context :: proc(ctx: ^$C, options := Options{}, allocator := context.a
Decode loop starts here. Decode loop starts here.
*/ */
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 {