Hi,

would it not make sense to force rechecking of DFXL_BLIT2 if SMF_SOURCE2
is set? Would be more in line with what happens if SMF_SOURCE is set...

See attached.


Cheers,
Andre'

>From de5e6abb624da921e6b05349be00c988ccf9beb2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <andre.dras...@st.com>
Date: Mon, 7 Nov 2011 17:48:22 +0000
Subject: [PATCH] gfxcard: force recheck of DFXL_BLIT2 if source2 has been changed

---
 src/core/gfxcard.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/core/gfxcard.c b/src/core/gfxcard.c
index 9974d21..340f73e 100644
--- a/src/core/gfxcard.c
+++ b/src/core/gfxcard.c
@@ -672,6 +672,10 @@ dfb_gfxcard_state_check( CardState *state, DFBAccelerationMask accel )
                /* ...force rechecking for all blitting functions. */
                state->checked &= ~DFXL_ALL_BLIT;
           }
+          else if (state->modified & SMF_SOURCE2) {
+               /* Otherwise force rechecking for blit2 function if source2 has been changed. */
+               state->checked &= ~DFXL_BLIT2;
+          }
 
           /* If drawing flags have been changed... */
           if (state->modified & SMF_DRAWING_FLAGS) {
-- 
1.7.1

_______________________________________________
directfb-dev mailing list
directfb-dev@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to