]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix a C++ error introduced when ddspixels was used as a memcpy target
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 6 Sep 2011 22:37:47 +0000 (22:37 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 6 Sep 2011 22:37:47 +0000 (22:37 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11331 d7cf8633-e32d-0410-b094-e92efae38249

gl_textures.c

index 3a5b20fcb6d2655199aa9a51a0842cd0710a27f8..2302eef8abb7f9cdfffca58353dc125c71721936 100644 (file)
@@ -2033,7 +2033,9 @@ rtexture_t *R_LoadTextureDDSFile(rtexturepool_t *rtexturepool, const char *filen
        int mip, mipwidth, mipheight, mipsize, mipsize_total;
        unsigned int c;
        GLint oldbindtexnum = 0;
-       const unsigned char *mippixels, *ddspixels, *mippixels_start;
+       const unsigned char *mippixels;
+       const unsigned char *mippixels_start;
+       unsigned char *ddspixels;
        unsigned char *dds;
        fs_offset_t ddsfilesize;
        unsigned int ddssize;