}
#endif
- // clear render target buffer
- SDL_RenderClear(sdl_renderer);
-
// set renderer to use target texture for rendering
if (video.screen_rendering_mode == SPECIAL_RENDERING_TARGET ||
video.screen_rendering_mode == SPECIAL_RENDERING_DOUBLE)
SDL_SetRenderTarget(sdl_renderer, sdl_texture_target);
+ // clear render target buffer
+ SDL_RenderClear(sdl_renderer);
+
// copy backbuffer texture to render target buffer
if (video.screen_rendering_mode != SPECIAL_RENDERING_TARGET)
SDL_RenderCopy(sdl_renderer, sdl_texture_stream, src_rect1, dst_rect1);