From afd058b754e568728fbc7e2e34651dab9a8a827f Mon Sep 17 00:00:00 2001 From: Scott Anderson Date: Tue, 8 Aug 2017 20:22:26 +1200 Subject: Fix software cursor. Fixes #45 --- types/wlr_output.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/types/wlr_output.c b/types/wlr_output.c index 7d3cdbed..f6c21e60 100644 --- a/types/wlr_output.c +++ b/types/wlr_output.c @@ -196,6 +196,9 @@ void wlr_output_make_current(struct wlr_output *output) { void wlr_output_swap_buffers(struct wlr_output *output) { if (output->cursor.is_sw) { + glViewport(0, 0, output->width, output->height); + glEnable(GL_BLEND); + glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); float matrix[16]; wlr_surface_get_matrix(output->cursor.texture, &matrix, &output->transform_matrix, output->cursor.x, output->cursor.y); -- cgit v1.2.3