i915: Bring test for vsync to pipe B in line with i915tex.
authorMichel Dänzer <michel@tungstengraphics.com>
Tue, 10 Apr 2007 09:05:17 +0000 (11:05 +0200)
committerMichel Dänzer <michel@tungstengraphics.com>
Tue, 10 Apr 2007 09:05:17 +0000 (11:05 +0200)
src/mesa/drivers/dri/i915/intel_context.c

index 4db4edd..d201fcf 100644 (file)
@@ -569,7 +569,7 @@ void intelWindowMoved( intelContextPtr intel )
         GLint areaB = driIntersectArea( drw_rect, pipeB_rect );
         GLuint flags = intel->vblank_flags;
 
-        if (areaB > areaA || (areaA > 0 && areaB > 0)) {
+        if (areaB > areaA || (areaA == areaB && areaB > 0)) {
            flags = intel->vblank_flags | VBLANK_FLAG_SECONDARY;
         } else {
            flags = intel->vblank_flags & ~VBLANK_FLAG_SECONDARY;