]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_textures.c
Added S_Terminate to free all sound resources at shutdown
[xonotic/darkplaces.git] / gl_textures.c
index 149ab8882dc3b712b110b8615ec15671b8cf3a12..819275406b5f811de5bb968860d75926bfd6580b 100644 (file)
@@ -482,9 +482,9 @@ static void r_textures_start(void)
        // use the largest scrap texture size we can (not sure if this is really a good idea)
        for (block_size = 1;block_size < realmaxsize && block_size < gl_max_scrapsize.integer;block_size <<= 1);
 
-       texturemempool = Mem_AllocPool("Texture Info");
-       texturedatamempool = Mem_AllocPool("Texture Storage (not yet uploaded)");
-       textureprocessingmempool = Mem_AllocPool("Texture Processing Buffers");
+       texturemempool = Mem_AllocPool("Texture Info", 0, NULL);
+       texturedatamempool = Mem_AllocPool("Texture Storage (not yet uploaded)", 0, NULL);
+       textureprocessingmempool = Mem_AllocPool("Texture Processing Buffers", 0, NULL);
 
        // Disable JPEG screenshots if the DLL isn't loaded
        if (! JPEG_OpenLibrary ())
@@ -713,7 +713,7 @@ static void R_Upload(gltexture_t *glt, qbyte *data)
                if (prevbuffer == NULL)
                {
                        R_MakeResizeBufferBigger(glt->image->width * glt->image->height * glt->image->depth * glt->image->bytesperpixel);
-                       memset(resizebuffer, 255, glt->width * glt->height * glt->image->depth * glt->image->bytesperpixel);
+                       memset(resizebuffer, 0, glt->width * glt->height * glt->image->depth * glt->image->bytesperpixel);
                        prevbuffer = resizebuffer;
                }
                else if (glt->textype->textype == TEXTYPE_PALETTE)
@@ -760,7 +760,7 @@ static void R_Upload(gltexture_t *glt, qbyte *data)
                        width = glt->image->width;
                        height = glt->image->height;
                        depth = glt->image->depth;
-                       memset(resizebuffer, 255, width * height * depth * glt->image->bytesperpixel);
+                       memset(resizebuffer, 0, width * height * depth * glt->image->bytesperpixel);
                        prevbuffer = resizebuffer;
                }
                else