main: Share textures, not draw targets, to reduce jank.
gfx: Implement CPU painting with texture upload on the painting side.