Thanks debian
This commit is contained in:
parent
8f16625831
commit
d98928d74d
1 changed files with 3 additions and 0 deletions
|
|
@ -255,7 +255,10 @@ static SDL_bool Impl_RenderContextReset(void)
|
|||
if (renderer)
|
||||
{
|
||||
SDL_DestroyRenderer(renderer);
|
||||
// Thanks Debian....
|
||||
#if SDL_VERSION_ATLEAST(2,28,0)
|
||||
SDL_DestroyWindowSurface(window); // workaround for a bug in sdl
|
||||
#endif
|
||||
texture = NULL; // Destroying a renderer also destroys all of its textures
|
||||
}
|
||||
renderer = NULL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue