1
0
forked from 0ad/0ad

Fixes terrain overlay texture upload after fd976456d7.

Reported By: nwtour
This was SVN commit r26176.
This commit is contained in:
Vladislav Belov 2022-01-06 14:16:32 +00:00
parent 912202ff0c
commit 9bc3dd4699

View File

@ -339,8 +339,8 @@ void TerrainTextureOverlay::RenderAfterWater(
u8* data = (u8*)calloc(w * h, 4);
BuildTextureRGBA(data, w, h);
deviceCommandContext->UploadTexture(
m_Texture.get(), Renderer::Backend::Format::R8G8B8A8, data, w * h * 4);
deviceCommandContext->UploadTextureRegion(
m_Texture.get(), Renderer::Backend::Format::R8G8B8A8, data, w * h * 4, 0, 0, w, h);
free(data);