fix bug#9237
authorXiang, Haihao <haihao.xiang@intel.com>
Fri, 8 Dec 2006 09:05:14 +0000 (17:05 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Fri, 8 Dec 2006 09:05:14 +0000 (17:05 +0800)
src/mesa/drivers/dri/i965/brw_misc_state.c

index 6a6c4503c7449e39b468357da1919813cc5df726..d5779680ffc8f60083fada813485dca29ab20eb8 100644 (file)
@@ -88,10 +88,10 @@ static void upload_drawing_rect(struct brw_context *brw)
    if (brw->intel.numClipRects > 1) 
       return; 
  
-   x1 = dPriv->x;
-   y1 = dPriv->y;      
-   x2 = dPriv->x + dPriv->w;
-   y2 = dPriv->y + dPriv->h;
+   x1 = brw->intel.pClipRects[0].x1;
+   y1 = brw->intel.pClipRects[0].y1;
+   x2 = brw->intel.pClipRects[0].x2;
+   y2 = brw->intel.pClipRects[0].y2;
         
    if (x1 < 0) x1 = 0;
    if (y1 < 0) y1 = 0;