mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 07:08:48 +00:00
Apply fix to QOI decoder as well.
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user