mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-23 06:45:32 +00:00
Better fix for static analysis issue in SDL_DestroyRenderer().
Follow up fix for Bugzilla #3544.
This commit is contained in:
parent
5fcd454a16
commit
c1ac4c6835
|
@ -1938,7 +1938,9 @@ SDL_DestroyRenderer(SDL_Renderer * renderer)
|
|||
|
||||
/* Free existing textures for this renderer */
|
||||
while (renderer->textures) {
|
||||
SDL_Texture *tex = renderer->textures;
|
||||
SDL_DestroyTexture(renderer->textures);
|
||||
SDL_assert(tex != renderer->textures); /* satisfy static analysis. */
|
||||
}
|
||||
|
||||
if (renderer->window) {
|
||||
|
|
Loading…
Reference in a new issue