mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-07 11:58:12 +00:00
gpu: SDL_ClaimWindowForGPUDevice must set an error message on failure
This commit is contained in:

committed by
Anonymous Maarten

parent
5c020b9930
commit
0370b92d80
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user