r200: fix typo in 76cf2618327a7f008dcfd0d91d64d6d9e01f9a9c
authorAlex Deucher <alexdeucher@gmail.com>
Wed, 20 Jan 2010 14:06:49 +0000 (09:06 -0500)
committerAlex Deucher <alexdeucher@gmail.com>
Wed, 20 Jan 2010 14:06:49 +0000 (09:06 -0500)
noticed by Maciej on IRC.

src/mesa/drivers/dri/r200/r200_blit.c

index f899f7efdcead9c29584c83e044cdc1644942bf5..b6fcc6e20c55c7b9c34d7a3da04d87dafcb5074a 100644 (file)
@@ -241,7 +241,7 @@ static inline void calc_tex_coords(float img_width, float img_height,
     buf[3] = buf[2] + reg_height / img_height;
     if (flip_y)
     {
-        buf[2] = 1.0 - buf[1];
+        buf[2] = 1.0 - buf[2];
         buf[3] = 1.0 - buf[3];
     }
 }