r300g: remove unnecessary assignments
authorMarek Olšák <maraeo@gmail.com>
Tue, 31 Aug 2010 03:37:28 +0000 (05:37 +0200)
committerMarek Olšák <maraeo@gmail.com>
Sat, 4 Sep 2010 17:06:47 +0000 (19:06 +0200)
src/gallium/drivers/r300/r300_blit.c

index 47ffc0cb3c6a83573abdb66e3c74b1419a08a378..77f0e273e103f836eb7b1ecf2ef8f7c3f10f684b 100644 (file)
@@ -391,9 +391,6 @@ static void r300_resource_copy_region(struct pipe_context *pipe,
         r300_flush_depth_stencil(pipe, src, subsrc, srcz);
     }
     if (old_format != new_format) {
-        dst->format = new_format;
-        src->format = new_format;
-
         r300_texture_reinterpret_format(pipe->screen,
                                         dst, new_format);
         r300_texture_reinterpret_format(pipe->screen,
@@ -404,9 +401,6 @@ static void r300_resource_copy_region(struct pipe_context *pipe,
                         src, subsrc, srcx, srcy, srcz, width, height);
 
     if (old_format != new_format) {
-        dst->format = old_format;
-        src->format = old_format;
-
         r300_texture_reinterpret_format(pipe->screen,
                                         dst, old_format);
         r300_texture_reinterpret_format(pipe->screen,