Fixes terrain overlay texture upload after fd976456d7
.
Reported By: nwtour This was SVN commit r26176.
This commit is contained in:
parent
912202ff0c
commit
9bc3dd4699
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user