minimap: clear texture before rendering

This commit is contained in:
Tommy 2022-07-05 18:46:12 +12:00
parent 72a266a9af
commit a503850cff

View file

@ -354,6 +354,11 @@ void render_minimap(unsigned dst_w,
// Point rendering to the temp minimap texture.
const draw::render_target_setter target_setter{minimap};
// Clear the minimap texture, as some of it can be left transparent.
draw::set_blend_mode(SDL_BLENDMODE_NONE);
draw::fill(0, 0, 0, 0);
draw::set_blend_mode(SDL_BLENDMODE_BLEND);
//
// Terrain
//