Add some missing changes

This commit is contained in:
Wojciech Figat
2022-02-08 18:06:56 +01:00
committed by Wojtek Figat
parent afed5a30bc
commit 69a1e007a6
4 changed files with 13 additions and 4 deletions

View File

@@ -244,6 +244,7 @@ bool GPUBuffer::DownloadData(BytesContainer& result)
// Ensure not running on main thread
if (IsInMainThread())
{
// TODO: support mesh data download from GPU on a main thread during rendering
LOG(Warning, "Cannot download GPU buffer data on a main thread. Use staging readback buffer or invoke this function from another thread.");
return true;
}