aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornumzero <numzer0@yandex.ru>2020-11-22 17:36:59 +0300
committerlhofhansl <larsh@apache.org>2020-11-26 12:49:10 -0800
commitbe59668f4743bb3bf85b37a188ffc1759601c152 (patch)
treedcaab3e03e578d0f49775bee44dcd1a10d334692
parentd7cf40a0ce996985cff20a156c56437f8b64c772 (diff)
downloadminetest-be59668f4743bb3bf85b37a188ffc1759601c152.tar.gz
minetest-be59668f4743bb3bf85b37a188ffc1759601c152.tar.bz2
minetest-be59668f4743bb3bf85b37a188ffc1759601c152.zip
Allow missing shaders
-rw-r--r--src/client/shader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/shader.cpp b/src/client/shader.cpp
index 4f6430579..1cec20d2c 100644
--- a/src/client/shader.cpp
+++ b/src/client/shader.cpp
@@ -577,7 +577,6 @@ ShaderInfo generate_shader(const std::string &name, u8 material_type, u8 drawtyp
shaderinfo.name = name;
shaderinfo.material_type = material_type;
shaderinfo.drawtype = drawtype;
- shaderinfo.material = video::EMT_SOLID;
switch (material_type) {
case TILE_MATERIAL_OPAQUE:
case TILE_MATERIAL_LIQUID_OPAQUE:
@@ -598,6 +597,7 @@ ShaderInfo generate_shader(const std::string &name, u8 material_type, u8 drawtyp
shaderinfo.base_material = video::EMT_TRANSPARENT_ALPHA_CHANNEL_REF;
break;
}
+ shaderinfo.material = shaderinfo.base_material;
bool enable_shaders = g_settings->getBool("enable_shaders");
if (!enable_shaders)