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/gles3 | |
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/gles3')
-rw-r--r-- | drivers/gles3/rasterizer_storage_gles3.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gles3/rasterizer_storage_gles3.cpp b/drivers/gles3/rasterizer_storage_gles3.cpp index c06ef805a6..649449a891 100644 --- a/drivers/gles3/rasterizer_storage_gles3.cpp +++ b/drivers/gles3/rasterizer_storage_gles3.cpp @@ -2830,7 +2830,7 @@ void RasterizerStorageGLES3::_update_material(Material *material) { if (material->shader && material->shader->mode == VS::SHADER_SPATIAL) { if (material->shader->spatial.blend_mode == Shader::Spatial::BLEND_MODE_MIX && - (!material->shader->spatial.uses_alpha || (material->shader->spatial.uses_alpha && material->shader->spatial.depth_draw_mode == Shader::Spatial::DEPTH_DRAW_ALPHA_PREPASS))) { + (!material->shader->spatial.uses_alpha || material->shader->spatial.depth_draw_mode == Shader::Spatial::DEPTH_DRAW_ALPHA_PREPASS)) { can_cast_shadow = true; } |