[PATCH xserver] glamor: Disable logic ops when doing compositing

Keith Packard keithp at keithp.com
Fri May 13 11:29:14 UTC 2016


If the logic op gets left enabled, it overrides the blending
operation, causing incorrect contents on the display.

Signed-off-by: Keith Packard <keithp at keithp.com>
---
 glamor/glamor_program.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/glamor/glamor_program.c b/glamor/glamor_program.c
index 0a94de6..a43ee6e 100644
--- a/glamor/glamor_program.c
+++ b/glamor/glamor_program.c
@@ -499,6 +499,7 @@ glamor_set_blend(CARD8 op, glamor_program_alpha alpha, PicturePtr dst)
     }
 
     glEnable(GL_BLEND);
+    glDisable(GL_COLOR_LOGIC_OP);
     glBlendFunc(src_blend, dst_blend);
 }
 
-- 
2.8.0.rc3



More information about the xorg-devel mailing list