summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-08-09 08:47:05 +0100
committerBrian <brian.paul@tungstengraphics.com>2007-08-09 08:49:05 +0100
commit48c37a29fa527aabcec76731de0bee508869e835 (patch)
tree8ecfc3878b51109eadb3b9a3f249875a607df9d0
parent6a78221a10d1c97f84e4c47e10b721aa4777d761 (diff)
fix byte swap bug for GLint stencil indexes (bug 11909)
-rw-r--r--src/mesa/main/image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/image.c b/src/mesa/main/image.c
index 9760e5f8d2..347cec66ef 100644
--- a/src/mesa/main/image.c
+++ b/src/mesa/main/image.c
@@ -3794,7 +3794,7 @@ _mesa_pack_stencil_span( const GLcontext *ctx, GLuint n,
GLint *dst = (GLint *) dest;
GLuint i;
for (i=0;i<n;i++) {
- *dst++ = (GLint) source[i];
+ dst[i] = (GLint) source[i];
}
if (dstPacking->SwapBytes) {
_mesa_swap4( (GLuint *) dst, n );