mesa: fix incorrect parameter order
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 26 Sep 2008 13:37:32 +0000 (07:37 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 26 Sep 2008 13:37:32 +0000 (07:37 -0600)
src/mesa/state_tracker/st_gen_mipmap.c

index b9d114b1c97c982b9847628b69fac53a3cadf0f0..a15faf732ca6b9fe07ea7e7560c315543751fa55 100644 (file)
@@ -138,11 +138,11 @@ fallback_generate_mipmap(GLcontext *ctx, GLenum target,
       _mesa_generate_mipmap_level(target, datatype, comps,
                    0 /*border*/,
                    pt->width[srcLevel], pt->height[srcLevel], pt->depth[srcLevel],
-                   srcSurf->stride, /* stride in bytes */
                    srcData,
+                   srcSurf->stride, /* stride in bytes */
                    pt->width[dstLevel], pt->height[dstLevel], pt->depth[dstLevel],
-                   dstSurf->stride, /* stride in bytes */
-                   dstData);
+                   dstData,
+                   dstSurf->stride); /* stride in bytes */
 
       pipe_buffer_unmap(pipe->screen, srcSurf->buffer);
       pipe_buffer_unmap(pipe->screen, dstSurf->buffer);