Mesa (gallium-0.2): mesa: fix incorrect parameter order

Brian Paul brianp at kemper.freedesktop.org
Fri Sep 26 13:37:44 UTC 2008


Module: Mesa
Branch: gallium-0.2
Commit: c7510ddc3f6faa68154c11ce820097492a0748d2
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c7510ddc3f6faa68154c11ce820097492a0748d2

Author: Brian Paul <brian.paul at tungstengraphics.com>
Date:   Fri Sep 26 07:37:32 2008 -0600

mesa: fix incorrect parameter order

---

 src/mesa/state_tracker/st_gen_mipmap.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/mesa/state_tracker/st_gen_mipmap.c b/src/mesa/state_tracker/st_gen_mipmap.c
index b9d114b..a15faf7 100644
--- a/src/mesa/state_tracker/st_gen_mipmap.c
+++ b/src/mesa/state_tracker/st_gen_mipmap.c
@@ -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);




More information about the mesa-commit mailing list