metal: Fix inverted return value in METAL_QueryFence

SDL_QueryGPUFence is documented to return true when the fence is signaled (complete). Since 514b26e it returns METAL_INTERNAL_IsFenceBusy directly, so it returns true when the fence is still busy, breaking usage of SDL_AcquireGPUSwapchainTexture.
This commit is contained in:
xentripetal
2026-08-09 11:59:42 -07:00
committed by Sam Lantinga
parent 616b8fb338
commit b340ddcd7b
+1 -1
View File
@@ -3633,7 +3633,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