gpu: SDL_ClaimWindowForGPUDevice must set an error message on failure

This commit is contained in:
Anonymous Maarten
2024-12-08 18:03:26 +01:00
committed by Anonymous Maarten
parent 5c020b9930
commit 0370b92d80
3 changed files with 4 additions and 6 deletions

View File

@@ -9585,8 +9585,7 @@ static bool VULKAN_ClaimWindow(
return false;
}
} else {
SDL_LogWarn(SDL_LOG_CATEGORY_GPU, "Window already claimed!");
return false;
SET_STRING_ERROR_AND_RETURN("Window already claimed!", false)
}
}