Commit fb30aa28 authored by Joshua Ashton's avatar Joshua Ashton 🐸

[d3d9] Correct surface width/height for mips.

parent b934fd8b
......@@ -50,8 +50,8 @@ namespace dxup {
m_resource->GetResourceAs<ID3D11Texture2D>()->GetDesc(&desc);
pDesc->Format = m_d3d9Desc.Format;
pDesc->Height = desc.Height;
pDesc->Width = desc.Width;
pDesc->Height = std::max(1u, desc.Height >> m_mip);
pDesc->Width = std::max(1u, desc.Width >> m_mip);
pDesc->Pool = m_d3d9Desc.Pool;
pDesc->MultiSampleType = (D3DMULTISAMPLE_TYPE)desc.SampleDesc.Count;
pDesc->MultiSampleQuality = desc.SampleDesc.Quality;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment