Fix new compile errors in Metal EndFrameCapture

Enabling -Wshorten-64-to-32 PR overlapped with this code landing
This commit is contained in:
Jake Turner
2022-07-21 17:31:18 +01:00
committed by Baldur Karlsson
parent 6e33222115
commit 529ed4ffe8
+2 -2
View File
@@ -184,8 +184,8 @@ bool WrappedMTLDevice::EndFrameCapture(DeviceOwnedWindow devWnd)
MTL::CommandBuffer *mtlCommandBuffer = m_mtlCommandQueue->commandBuffer();
MTL::BlitCommandEncoder *mtlBlitEncoder = mtlCommandBuffer->blitCommandEncoder();
NS::UInteger sourceWidth = mtlBackBuffer->width();
NS::UInteger sourceHeight = mtlBackBuffer->height();
uint32_t sourceWidth = (uint32_t)mtlBackBuffer->width();
uint32_t sourceHeight = (uint32_t)mtlBackBuffer->height();
MTL::Origin sourceOrigin(0, 0, 0);
MTL::Size sourceSize(sourceWidth, sourceHeight, 1);