Skip to content

Commit

Permalink
Allow missing shaders
Browse files Browse the repository at this point in the history
  • Loading branch information
numberZero authored and lhofhansl committed Nov 26, 2020
1 parent d7cf40a commit be59668
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/shader.cpp
Expand Up @@ -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:
Expand All @@ -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)
Expand Down

0 comments on commit be59668

Please sign in to comment.