]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_textures.c
added Sys_PrintfToTerminal function for convenience, this replaces
[xonotic/darkplaces.git] / gl_textures.c
index aa1d2f12960466b96b4b36d66c28d5fddc9c70f8..f1b6e09547ebe3442b534abc503b3b11f8d78626 100644 (file)
@@ -1012,7 +1012,7 @@ void R_Textures_Frame (void)
        }
 }
 
-void R_MakeResizeBufferBigger(int size)
+static void R_MakeResizeBufferBigger(int size)
 {
        if (resizebuffersize < size)
        {
@@ -1620,6 +1620,7 @@ static rtexture_t *R_SetupTexture(rtexturepool_t *rtexturepool, const char *iden
                        {
                                temppixels = (unsigned char *)Mem_Alloc(tempmempool, size);
                                memcpy(temppixels, data, size);
+                               data = temppixels;
                        }
                        Image_MakeLinearColorsFromsRGB(temppixels, temppixels, width*height*depth*sides);
                }