tests: Clean up the renderer in the video test suite since it isn't automatic anymore.
parent
bede245395
commit
566d142938
|
@ -75,6 +75,10 @@ static SDL_Window *createVideoSuiteTestWindow(const char *title)
|
||||||
static void destroyVideoSuiteTestWindow(SDL_Window *window)
|
static void destroyVideoSuiteTestWindow(SDL_Window *window)
|
||||||
{
|
{
|
||||||
if (window != NULL) {
|
if (window != NULL) {
|
||||||
|
SDL_Renderer *renderer = SDL_GetRenderer(window);
|
||||||
|
if (renderer) {
|
||||||
|
SDL_DestroyRenderer(renderer);
|
||||||
|
}
|
||||||
SDL_DestroyWindow(window);
|
SDL_DestroyWindow(window);
|
||||||
window = NULL;
|
window = NULL;
|
||||||
SDLTest_AssertPass("Call to SDL_DestroyWindow()");
|
SDLTest_AssertPass("Call to SDL_DestroyWindow()");
|
||||||
|
|
Loading…
Reference in New Issue