Revert "Fixed build"

This reverts commit 026dfc6305.

Fixed build again!
This commit is contained in:
Sam Lantinga
2024-07-08 14:46:15 -07:00
parent 026dfc6305
commit 3899cb1696

View File

@@ -1601,8 +1601,7 @@ int D3D_CreateRenderer(SDL_Renderer *renderer, SDL_Window *window, Uint32 flags)
if (!SDL_GetWindowWMInfo(window, &windowinfo) ||
windowinfo.subsystem != SDL_SYSWM_WINDOWS) {
SDL_free(data);
SDL_SetError("Couldn't get window handle");
return NULL;
return SDL_SetError("Couldn't get window handle");
}
window_flags = SDL_GetWindowFlags(window);