d3d12: Do not init D2DStruct if uneeded

This commit is contained in:
Vincent Lejeune 2015-09-15 15:52:01 +02:00
parent 72e5578595
commit 5f08cca849

View File

@ -318,7 +318,8 @@ D3D12GSRender::D3D12GSRender()
m_vertexIndexData.Init(m_device.Get(), 1024 * 1024 * 384, D3D12_HEAP_TYPE_UPLOAD, D3D12_HEAP_FLAG_ALLOW_ONLY_BUFFERS);
m_textureUploadData.Init(m_device.Get(), 1024 * 1024 * 256, D3D12_HEAP_TYPE_UPLOAD, D3D12_HEAP_FLAG_ALLOW_ONLY_BUFFERS);
InitD2DStructures();
if (Ini.GSOverlay.GetValue())
InitD2DStructures();
}
D3D12GSRender::~D3D12GSRender()