Skip to content

Commit

Permalink
canvas: fix ywCanvasRemoveColorMod for big texture
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Gatto <[email protected]>
  • Loading branch information
cosmo-ray committed Oct 10, 2024
1 parent 9064d91 commit 9ca2ba4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions core/widget/canvas.c
Original file line number Diff line number Diff line change
Expand Up @@ -1074,6 +1074,15 @@ void ywCanvasRemoveColorMod(Entity *obj)
if (!img)
return;
GPU_UnsetColor(img);
} else if (type == YCanvasBigTexture) {
Entity *txts_h = yeGet(obj, YCANVAS_IMG_IDX);
YE_FOREACH(txts_h, txts_w) {
YE_FOREACH(txts_w, texture) {
GPU_Image *t = yeGetData(texture);
GPU_UnsetColor(t);
}
}

}
}

Expand Down

0 comments on commit 9ca2ba4

Please sign in to comment.