Should sprite:getImage():clear() require an explicit sprite:markDirty()


When I clear the image attached to a sprite, I need to explicitly mark it as dirty or else the display won't update properly.


This does not occur if I immediately draw something to the image. I assume this is because the drawWhatever call correctly flags the image as dirty so gets it redrawn, while as clear() does not. Since this is probably not intended and just an oversight in :clear(), I figured I'd file a bug.

Relatedly, I noticed the SDK documentation for was just copy pasted from setAlwaysRedraw.