mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-08-26 08:31:39 +00:00
metal: Fix inverted return value in METAL_QueryFence
SDL_QueryGPUFence is documented to return true when the fence is signaled (complete). Since514b26eit returns METAL_INTERNAL_IsFenceBusy directly, so it returns true when the fence is still busy, breaking usage of SDL_AcquireGPUSwapchainTexture. (cherry picked from commitb340ddcd7b)
This commit is contained in:
committed by
Sam Lantinga
parent
46604eb8c0
commit
b79a5e27ff
@@ -3627,7 +3627,7 @@ static bool METAL_QueryFence(
|
||||
SDL_GPUFence *fence)
|
||||
{
|
||||
MetalFence *metalFence = (MetalFence *)fence;
|
||||
return METAL_INTERNAL_IsFenceBusy(metalFence);
|
||||
return !METAL_INTERNAL_IsFenceBusy(metalFence);
|
||||
}
|
||||
|
||||
// Window and Swapchain Management
|
||||
|
||||
Reference in New Issue
Block a user