From 1932f4097bf93569018c4d2b8fe12e4155ab5b00 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Mon, 20 Mar 2017 07:21:54 -0700 Subject: [PATCH] Fix a type conversion warning. --- GPU/D3D11/FramebufferManagerD3D11.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPU/D3D11/FramebufferManagerD3D11.cpp b/GPU/D3D11/FramebufferManagerD3D11.cpp index 60cb8edd2..4ea5fde42 100644 --- a/GPU/D3D11/FramebufferManagerD3D11.cpp +++ b/GPU/D3D11/FramebufferManagerD3D11.cpp @@ -846,7 +846,7 @@ void FramebufferManagerD3D11::PackFramebufferD3D11_(VirtualFramebuffer *vfb, int ID3D11Texture2D *colorTex = (ID3D11Texture2D *)draw_->GetFramebufferAPITexture(vfb->fbo, Draw::FB_COLOR_BIT, 0); // TODO: Only copy the necessary rectangle. - D3D11_BOX srcBox{ x, y, 0, x+w, y+h, 1 }; + D3D11_BOX srcBox{ (UINT)x, (UINT)y, 0, (UINT)(x+w), (UINT)(y+h), 1 }; context_->CopySubresourceRegion(packTexture_, 0, x, y, 0, colorTex, 0, &srcBox); // Ideally, we'd round robin between two packTexture_, and simply use the other one. Though if the game