summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-08-09 08:45:01 +0100
committerBrian <[email protected]>2007-08-09 08:45:01 +0100
commit62cbbd7226bc55003bbcc061187f57758df410f9 (patch)
tree6cfd5ee8e5ac422c7b53a20df226c6e5ad222358 /src
parentf7cbe7fcee2bf2972b26d1d69938ca42bb634b8f (diff)
fix byte swap bug for GLuint stencil indexes (bug 11909)
Diffstat (limited to 'src')
-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 803f4785c0a..d7a96f70d9a 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 );