Skip to content

Commit 34418e7

Browse files
committed
vdisp/sdl3: set render clear color
Seems like Wayland driver seem to need to have this set explicitly for the eventual borders to be cleared correctly with SDL_RenderClear. Otherwise the eventual margins may not be cleared by SDL_RenderClear (tested with U25.10 live DVD with llvmpipe software renderer inside VM).
1 parent 662aeb8 commit 34418e7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/video_display/sdl3.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -869,6 +869,8 @@ display_sdl3_reconfigure_real(void *state, struct video_desc desc)
869869
MSG(ERROR, "Unable to create renderer: %s\n", SDL_GetError());
870870
return false;
871871
}
872+
SDL_CHECK(
873+
SDL_SetRenderDrawColor(s->renderer, 0, 0, 0, SDL_ALPHA_OPAQUE));
872874
if (s->vsync) {
873875
// try adaptive first, if it doesn't succeed try 1
874876
if (!SDL_SetRenderVSync(s->renderer,

0 commit comments

Comments
 (0)