st/mesa: get rid of redundant clipping code in st_copy_texsubimage()
authorBrian Paul <brianp@vmware.com>
Wed, 20 Jul 2011 02:03:05 +0000 (20:03 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 20 Jul 2011 02:03:05 +0000 (20:03 -0600)
src/mesa/state_tracker/st_cb_texture.c

index 83e83695aae0ae8bdd7aa09517158a1578fee213..25f08aa4d0982e4170afc80a84d66a5e7e81a81d 100644 (file)
@@ -1466,34 +1466,6 @@ st_copy_texsubimage(struct gl_context *ctx,
       depth/stencil samples per pixel? Need some transfer clarifications. */
    assert(sample_count < 2);
 
-   if (srcX < 0) {
-      width -= -srcX;
-      destX += -srcX;
-      srcX = 0;
-   }
-
-   if (srcY < 0) {
-      height -= -srcY;
-      destY += -srcY;
-      srcY = 0;
-   }
-
-   if (destX < 0) {
-      width -= -destX;
-      srcX += -destX;
-      destX = 0;
-   }
-
-   if (destY < 0) {
-      height -= -destY;
-      srcY += -destY;
-      destY = 0;
-   }
-
-   if (width < 0 || height < 0)
-      return;
-
-
    assert(strb);
    assert(strb->surface);
    assert(stImage->pt);