]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix a C++ error
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 25 Dec 2010 16:55:15 +0000 (16:55 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 25 Dec 2010 16:55:15 +0000 (16:55 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10681 d7cf8633-e32d-0410-b094-e92efae38249

gl_textures.c

index 18f6af853b947250b8f89a27947986decb67db85..e263502a2f24087ec348ed1d20c92fdfe383d3b5 100644 (file)
@@ -2003,7 +2003,7 @@ rtexture_t *R_LoadTextureDDSFile(rtexturepool_t *rtexturepool, const char *filen
        if(force_swdecode)
        {
                int mipsize_new = mipsize_total / bytesperblock * 4;
-               unsigned char *mipnewpixels = Mem_Alloc(tempmempool, mipsize_new);
+               unsigned char *mipnewpixels = (unsigned char *) Mem_Alloc(tempmempool, mipsize_new);
                unsigned char *p = mipnewpixels;
                for (i = bytesperblock == 16 ? 8 : 0;i < (int)mipsize_total;i += bytesperblock, p += 4)
                {