diff options
author | Vitaliy <numzer0@yandex.ru> | 2020-12-19 22:57:10 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-19 20:57:10 +0100 |
commit | ccbf8029ea6bfc5bb5d4af340bd4c2c0d58fe0ff (patch) | |
tree | 9bb8bf7b22d44a45e7a1efd400f465e21ca3d8c9 /src/client/minimap.cpp | |
parent | 664f5ce9605b580b9500547fff1e54eac553f295 (diff) | |
download | minetest-ccbf8029ea6bfc5bb5d4af340bd4c2c0d58fe0ff.tar.gz minetest-ccbf8029ea6bfc5bb5d4af340bd4c2c0d58fe0ff.tar.bz2 minetest-ccbf8029ea6bfc5bb5d4af340bd4c2c0d58fe0ff.zip |
Cleanup shader generation code (#10663)
Shader generation is a mess. This commit cleans some parts up, including dropping remains of HLSL support which was never actually implemented.
Diffstat (limited to 'src/client/minimap.cpp')
-rw-r--r-- | src/client/minimap.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/minimap.cpp b/src/client/minimap.cpp index d068ad5f7..c6ccf86e8 100644 --- a/src/client/minimap.cpp +++ b/src/client/minimap.cpp @@ -612,7 +612,7 @@ void Minimap::drawMinimap(core::rect<s32> rect) { material.TextureLayer[1].Texture = data->heightmap_texture; if (m_enable_shaders && data->mode.type == MINIMAP_TYPE_SURFACE) { - u16 sid = m_shdrsrc->getShader("minimap_shader", 1, 1); + u16 sid = m_shdrsrc->getShader("minimap_shader", TILE_MATERIAL_ALPHA); material.MaterialType = m_shdrsrc->getShaderInfo(sid).material; } else { material.MaterialType = video::EMT_TRANSPARENT_ALPHA_CHANNEL; |