Fix threading issues with GPU buffers mapping
This commit is contained in:
committed by
Wojtek Figat
parent
e2aa6b8970
commit
0595f38fe4
@@ -77,9 +77,10 @@ void GPUBufferDX12::Unmap()
|
||||
writtenRangePtr = nullptr;
|
||||
break;
|
||||
default:
|
||||
CRASH;
|
||||
return;
|
||||
}
|
||||
_resource->Unmap(0, writtenRangePtr);
|
||||
_lastMapMode = (GPUResourceMapMode)255;
|
||||
}
|
||||
|
||||
GPUResource* GPUBufferDX12::AsGPUResource() const
|
||||
|
||||
Reference in New Issue
Block a user