Mesa (master): st/vega: Fix negated logic in image_draw.

Chia-I Wu olv at kemper.freedesktop.org
Wed Dec 1 03:39:59 UTC 2010


Module: Mesa
Branch: master
Commit: 06e7a5502817d9df7f023083b135c8cd327c3e6c
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=06e7a5502817d9df7f023083b135c8cd327c3e6c

Author: Chia-I Wu <olv at lunarg.com>
Date:   Wed Dec  1 11:39:02 2010 +0800

st/vega: Fix negated logic in image_draw.

A typo from last commit.

---

 src/gallium/state_trackers/vega/image.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/gallium/state_trackers/vega/image.c b/src/gallium/state_trackers/vega/image.c
index fc87536..a20b6d5 100644
--- a/src/gallium/state_trackers/vega/image.c
+++ b/src/gallium/state_trackers/vega/image.c
@@ -529,10 +529,10 @@ void image_draw(struct vg_image *img, struct matrix *matrix)
    VGfloat x3, y3;
    VGfloat x4, y4;
 
-   if (vg_get_paint_matrix(ctx,
-                           &ctx->state.vg.fill_paint_to_user_matrix,
-                           matrix,
-                           &paint_matrix))
+   if (!vg_get_paint_matrix(ctx,
+                            &ctx->state.vg.fill_paint_to_user_matrix,
+                            matrix,
+                            &paint_matrix))
       return;
 
    x1 = 0;




More information about the mesa-commit mailing list