1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-03-14 04:29:15 +01:00

[d3d11] Re-implement check for mapping device-local images

This commit is contained in:
Philip Rebohle 2018-03-06 11:35:12 +01:00
parent b2f5b262f7
commit 13331a463f
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -150,6 +150,11 @@ namespace dxvk {
// We use a buffer instead and then perform a copy.
D3D11TextureInfo* textureInfo = GetCommonTextureInfo(pResource);
if (textureInfo->imageBuffer == nullptr) {
Logger::err("D3D11: Cannot map a device-local image");
return E_INVALIDARG;
}
if (pMappedResource == nullptr)
return S_FALSE;