diff options
| author | mimimi085181 <mimimi085181@gmail.com> | 2016-02-14 17:13:07 +0100 |
|---|---|---|
| committer | mimimi085181 <mimimi085181@gmail.com> | 2016-02-14 21:17:06 +0100 |
| commit | bb4d636f34ab26c4c964cf83383d0694be6beb8c (patch) | |
| tree | 569fbb67e52f6433087febd45930280c6a2fd289 /Source/Core/VideoBackends/D3D/TextureCache.cpp | |
| parent | 99555a35cad56b53ead422f23eae49a2251e52d6 (diff) | |
Copy all layers of textures with CopyRectangleFromTexture
Diffstat (limited to 'Source/Core/VideoBackends/D3D/TextureCache.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/D3D/TextureCache.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoBackends/D3D/TextureCache.cpp b/Source/Core/VideoBackends/D3D/TextureCache.cpp index 1403027dfc..ac8271fbb5 100644 --- a/Source/Core/VideoBackends/D3D/TextureCache.cpp +++ b/Source/Core/VideoBackends/D3D/TextureCache.cpp @@ -93,7 +93,7 @@ void TextureCache::TCacheEntry::CopyRectangleFromTexture( srcbox.right = srcrect.right; srcbox.bottom = srcrect.bottom; srcbox.front = 0; - srcbox.back = 1; + srcbox.back = srcentry->config.layers; D3D::context->CopySubresourceRegion( texture->GetTex(), @@ -130,7 +130,7 @@ void TextureCache::TCacheEntry::CopyRectangleFromTexture( srcentry->config.width, srcentry->config.height, PixelShaderCache::GetColorCopyProgram(false), VertexShaderCache::GetSimpleVertexShader(), - VertexShaderCache::GetSimpleInputLayout(), nullptr, 1.0, 0); + VertexShaderCache::GetSimpleInputLayout(), GeometryShaderCache::GetCopyGeometryShader(), 1.0, 0); D3D::context->OMSetRenderTargets(1, &FramebufferManager::GetEFBColorTexture()->GetRTV(), |
