fixed render recreation

This commit is contained in:
Thomas Jentzsch 2021-10-15 10:31:37 +02:00
parent 6c5a3acea8
commit f50c080b35
1 changed files with 3 additions and 0 deletions

View File

@ -426,6 +426,9 @@ bool FBBackendSDL2::createRenderer()
if(recreate)
{
//cerr << "Create new renderer for buffer type #" << int(myBufferType) << endl;
if(myRenderer)
SDL_DestroyRenderer(myRenderer);
if(video != "")
SDL_SetHint(SDL_HINT_RENDER_DRIVER, video.c_str());