From 7dfb26eb31ed879ce5c447a24c53edd93077bd0e Mon Sep 17 00:00:00 2001 From: jp9000 Date: Thu, 3 Jul 2014 14:12:48 -0700 Subject: [PATCH] Reset blend state to default after drawing --- plugins/linux-xcomposite/xcompcap-main.cpp | 2 ++ plugins/linux-xshm/xcursor.c | 1 - plugins/linux-xshm/xshm-input.c | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/linux-xcomposite/xcompcap-main.cpp b/plugins/linux-xcomposite/xcompcap-main.cpp index 3a7b58696..fe9d0a6d8 100644 --- a/plugins/linux-xcomposite/xcompcap-main.cpp +++ b/plugins/linux-xcomposite/xcompcap-main.cpp @@ -442,6 +442,8 @@ void XCompcapMain::render(effect_t effect) gs_enable_blending(false); gs_draw_sprite(p->tex, 0, 0, 0); + + gs_reset_blend_state(); } uint32_t XCompcapMain::width() diff --git a/plugins/linux-xshm/xcursor.c b/plugins/linux-xshm/xcursor.c index c819bfe9b..411ec73f9 100644 --- a/plugins/linux-xshm/xcursor.c +++ b/plugins/linux-xshm/xcursor.c @@ -105,7 +105,6 @@ void xcursor_render(xcursor_t *data) { gs_enable_blending(True); gs_blendfunction(GS_BLEND_ONE, GS_BLEND_INVSRCALPHA); gs_draw_sprite(data->tex, 0, 0, 0); - gs_enable_blending(False); gs_matrix_pop(); } diff --git a/plugins/linux-xshm/xshm-input.c b/plugins/linux-xshm/xshm-input.c index b3a3f8abf..9808f90ab 100644 --- a/plugins/linux-xshm/xshm-input.c +++ b/plugins/linux-xshm/xshm-input.c @@ -275,6 +275,8 @@ static void xshm_video_render(void *vptr, effect_t effect) if (data->show_cursor) xcursor_render(data->cursor); + + gs_reset_blend_state(); } /** -- GitLab