mirror of https://github.com/stella-emu/stella.git
fixed render recreation
This commit is contained in:
parent
eafac57d1d
commit
e0564c0661
|
@ -426,6 +426,9 @@ bool FBBackendSDL2::createRenderer()
|
||||||
if(recreate)
|
if(recreate)
|
||||||
{
|
{
|
||||||
//cerr << "Create new renderer for buffer type #" << int(myBufferType) << endl;
|
//cerr << "Create new renderer for buffer type #" << int(myBufferType) << endl;
|
||||||
|
if(myRenderer)
|
||||||
|
SDL_DestroyRenderer(myRenderer);
|
||||||
|
|
||||||
if(video != "")
|
if(video != "")
|
||||||
SDL_SetHint(SDL_HINT_RENDER_DRIVER, video.c_str());
|
SDL_SetHint(SDL_HINT_RENDER_DRIVER, video.c_str());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue