diff --git a/client/renderers/EGL/cursor.c b/client/renderers/EGL/cursor.c index dba3dd69..b3a3ee32 100644 --- a/client/renderers/EGL/cursor.c +++ b/client/renderers/EGL/cursor.c @@ -26,6 +26,7 @@ #include "texture.h" #include "shader.h" #include "model.h" +#include "util.h" #include #include @@ -332,6 +333,9 @@ struct CursorState egl_cursor_render(EGL_Cursor * cursor, LG_RendererRotate rota assert(!"unreachable"); } + state.rect.x = max(0, state.rect.x); + state.rect.y = max(0, state.rect.y); + glEnable(GL_BLEND); switch(cursor->type) {