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:
parent
b2f5b262f7
commit
13331a463f
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user