Add additional UploadMipMapAsync for GPUTexture update with custom row/slice pitch

This commit is contained in:
Wojciech Figat
2022-02-08 18:04:44 +01:00
committed by Wojtek Figat
parent 3c9a5bcf1a
commit 066a4c65bb
6 changed files with 46 additions and 24 deletions

View File

@@ -210,7 +210,9 @@ void FontTextureAtlas::Flush()
// Upload data to the GPU
BytesContainer data;
data.Link(_data);
_texture->UploadMipMapAsync(data, 0)->Start();
auto task = _texture->UploadMipMapAsync(data, 0);
if (task)
task->Start();
// Clear dirty flag
_isDirty = false;