diff options
author | clayjohn <claynjohn@gmail.com> | 2023-02-09 15:50:17 -0800 |
---|---|---|
committer | clayjohn <claynjohn@gmail.com> | 2023-02-09 15:50:17 -0800 |
commit | f6d22df0726988682aee7787cf427da23ba2aaed (patch) | |
tree | fc70cc1ed2aa14abd538e910b4b5f87149f7238b /drivers/gles3 | |
parent | 929ee61170ec4d431d6d2cfeddccdec2a59a11b7 (diff) |
Properly reset blend mode when resetting canvas in compatibility renderer
Diffstat (limited to 'drivers/gles3')
-rw-r--r-- | drivers/gles3/rasterizer_canvas_gles3.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gles3/rasterizer_canvas_gles3.cpp b/drivers/gles3/rasterizer_canvas_gles3.cpp index 0e217f699e..3c5441f3c4 100644 --- a/drivers/gles3/rasterizer_canvas_gles3.cpp +++ b/drivers/gles3/rasterizer_canvas_gles3.cpp @@ -2259,6 +2259,7 @@ void RasterizerCanvasGLES3::reset_canvas() { glDisable(GL_DEPTH_TEST); glDisable(GL_SCISSOR_TEST); glEnable(GL_BLEND); + glBlendEquation(GL_FUNC_ADD); glBlendFuncSeparate(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_ZERO, GL_ONE); glActiveTexture(GL_TEXTURE0 + GLES3::Config::get_singleton()->max_texture_image_units - 2); |