mesa: fix incorrect type in _mesa_texstore_rgba_int16()
authorBrian Paul <brianp@vmware.com>
Fri, 29 Oct 2010 03:17:42 +0000 (21:17 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 29 Oct 2010 03:17:42 +0000 (21:17 -0600)
src/mesa/main/texstore.c

index fb34a005b3b9636902e07a17c78f53bf7e0bb37e..ddbabe4b631d4b259ff7ee5cdf7d624446a3bc67 100644 (file)
@@ -3350,7 +3350,7 @@ _mesa_texstore_rgba_int16(TEXSTORE_PARAMS)
    if (!ctx->_ImageTransferState &&
        !srcPacking->SwapBytes &&
        baseInternalFormat == srcFormat &&
-       srcType == GL_INT) {
+       srcType == GL_SHORT) {
       /* simple memcpy path */
       memcpy_texture(ctx, dims,
                      dstFormat, dstAddr, dstXoffset, dstYoffset, dstZoffset,