From 22f3cf5ba6993a09fcccced3c063f5c098cdca2d Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Wed, 26 Jan 2022 12:23:05 +1100 Subject: [PATCH] [client] egl: fix masked color cursor blend operation for xor drawing --- client/renderers/EGL/cursor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/renderers/EGL/cursor.c b/client/renderers/EGL/cursor.c index 3b27ca4a..5387dd9a 100644 --- a/client/renderers/EGL/cursor.c +++ b/client/renderers/EGL/cursor.c @@ -401,7 +401,7 @@ struct CursorState egl_cursorRender(EGL_Cursor * cursor, egl_shaderUse(cursor->norm.shader); setCursorTexUniforms(cursor, &cursor->norm, false, pos.x, pos.y, size.w, size.h, scale); - glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA); + glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); egl_modelSetTexture(cursor->model, cursor->norm.texture); egl_modelRender(cursor->model);