Fix minimap radar mode flickering

This commit is contained in:
stujones11 2019-05-16 21:41:55 +01:00
parent cf9bf58919
commit 540faa2f98
1 changed files with 1 additions and 1 deletions

View File

@ -501,7 +501,7 @@ void Minimap::drawMinimap()
material.setFlag(video::EMF_TRILINEAR_FILTER, true); material.setFlag(video::EMF_TRILINEAR_FILTER, true);
material.Lighting = false; material.Lighting = false;
material.TextureLayer[0].Texture = minimap_texture; material.TextureLayer[0].Texture = minimap_texture;
material.TextureLayer[1].Texture = data->heightmap_texture; material.TextureLayer[1].Texture = data->is_radar ? 0 : data->heightmap_texture;
if (m_enable_shaders && !data->is_radar) { if (m_enable_shaders && !data->is_radar) {
u16 sid = m_shdrsrc->getShader("minimap_shader", 1, 1); u16 sid = m_shdrsrc->getShader("minimap_shader", 1, 1);