Merge pull request #73006 from clayjohn/GL-blend-sub

Properly reset blend mode when resetting canvas in compatibility renderer
This commit is contained in:
Rémi Verschelde 2023-02-10 15:06:24 +01:00
commit 871c06af6d
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -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);