1
0
forked from mirrors/0ad

Removes drawing via IDeviceCommandContext from CMinimap.

Comments By: phosit
Differential Revision: https://code.wildfiregames.com/D4779
This was SVN commit r27109.
This commit is contained in:
vladislavbelov
2022-10-04 19:32:42 +00:00
parent bd7b9b884a
commit 75518d0e15
5 changed files with 73 additions and 104 deletions
+5 -3
View File
@@ -344,11 +344,13 @@ void CMiniMapTexture::CreateTextures(
m_TerrainData = std::make_unique<u32[]>((m_MapSize - 1) * (m_MapSize - 1));
m_FinalTexture = backendDevice->CreateTexture2D("MiniMapFinalTexture",
Renderer::Backend::Format::R8G8B8A8_UNORM, FINAL_TEXTURE_SIZE, FINAL_TEXTURE_SIZE, defaultSamplerDesc);
m_FinalTexture = g_Renderer.GetTextureManager().WrapBackendTexture(
backendDevice->CreateTexture2D("MiniMapFinalTexture",
Renderer::Backend::Format::R8G8B8A8_UNORM,
FINAL_TEXTURE_SIZE, FINAL_TEXTURE_SIZE, defaultSamplerDesc));
m_FinalTextureFramebuffer = backendDevice->CreateFramebuffer("MiniMapFinalFramebuffer",
m_FinalTexture.get(), nullptr);
m_FinalTexture->GetBackendTexture(), nullptr);
ENSURE(m_FinalTextureFramebuffer);
}