mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-25 14:57:20 +00:00
[client] egl: fix masked color cursor blend operation for xor drawing
This commit is contained in:
parent
3067bdaa15
commit
22f3cf5ba6
@ -401,7 +401,7 @@ struct CursorState egl_cursorRender(EGL_Cursor * cursor,
|
|||||||
egl_shaderUse(cursor->norm.shader);
|
egl_shaderUse(cursor->norm.shader);
|
||||||
setCursorTexUniforms(cursor, &cursor->norm, false, pos.x, pos.y,
|
setCursorTexUniforms(cursor, &cursor->norm, false, pos.x, pos.y,
|
||||||
size.w, size.h, scale);
|
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_modelSetTexture(cursor->model, cursor->norm.texture);
|
||||||
egl_modelRender(cursor->model);
|
egl_modelRender(cursor->model);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user