fix byte swap bug for GLint stencil indexes (bug 11909)

This commit is contained in:
Brian 2007-08-09 08:47:05 +01:00
parent 6a78221a10
commit 48c37a29fa

View file

@ -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 );