diff options
author | Thomas Herzog <therzog@mail.de> | 2018-08-23 17:38:20 +0200 |
---|---|---|
committer | Thomas Herzog <therzog@mail.de> | 2018-08-23 17:38:20 +0200 |
commit | 0f59cc179c859d1030b131c8b7fc122e826d2563 (patch) | |
tree | d9347d8470f66cfb3b60f5d0c7944c870c21a7af /drivers | |
parent | 398c1c1c0c5c0380f39403b384e4d798ccf7fb75 (diff) |
[GLES2] fix CanvasModulate not working
That's what happens when you forget about your debug
shortcuts.
Fixes #21025
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gles2/rasterizer_canvas_gles2.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gles2/rasterizer_canvas_gles2.cpp b/drivers/gles2/rasterizer_canvas_gles2.cpp index 432c9a9661..5b04517394 100644 --- a/drivers/gles2/rasterizer_canvas_gles2.cpp +++ b/drivers/gles2/rasterizer_canvas_gles2.cpp @@ -937,7 +937,7 @@ void RasterizerCanvasGLES2::canvas_render_items(Item *p_item_list, int p_z, cons } int blend_mode = shader_cache ? shader_cache->canvas_item.blend_mode : RasterizerStorageGLES2::Shader::CanvasItem::BLEND_MODE_MIX; - bool unshaded = true || (shader_cache && blend_mode != RasterizerStorageGLES2::Shader::CanvasItem::BLEND_MODE_MIX); + bool unshaded = (shader_cache && blend_mode != RasterizerStorageGLES2::Shader::CanvasItem::BLEND_MODE_MIX); bool reclip = false; if (last_blend_mode != blend_mode) { |