diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-11-05 08:31:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-05 08:31:14 +0100 |
commit | 17b776e549cf974b685bde897765271b63911bec (patch) | |
tree | 709d555eed509a3e9c87fc4a89436873d78a78b7 /drivers/gles2 | |
parent | a282e67b2420cfc98d808febf3aec6fc6370c324 (diff) | |
parent | e4884cfc752d7f16cf4c9c4477e733df73cde4c4 (diff) |
Merge pull request #23502 from Rubonnek/simplified-logic
Simplified boolean logic in GLES2/3 rasterizers
Diffstat (limited to 'drivers/gles2')
-rw-r--r-- | drivers/gles2/rasterizer_storage_gles2.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gles2/rasterizer_storage_gles2.cpp b/drivers/gles2/rasterizer_storage_gles2.cpp index c4c5093540..5011794735 100644 --- a/drivers/gles2/rasterizer_storage_gles2.cpp +++ b/drivers/gles2/rasterizer_storage_gles2.cpp @@ -1602,7 +1602,7 @@ void RasterizerStorageGLES2::_update_material(Material *p_material) { if (p_material->shader && p_material->shader->mode == VS::SHADER_SPATIAL) { if (p_material->shader->spatial.blend_mode == Shader::Spatial::BLEND_MODE_MIX && - (!p_material->shader->spatial.uses_alpha || (p_material->shader->spatial.uses_alpha && p_material->shader->spatial.depth_draw_mode == Shader::Spatial::DEPTH_DRAW_ALPHA_PREPASS))) { + (!p_material->shader->spatial.uses_alpha || p_material->shader->spatial.depth_draw_mode == Shader::Spatial::DEPTH_DRAW_ALPHA_PREPASS)) { can_cast_shadow = true; } |