git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2323
d7cf8633-e32d-0410-b094-
e92efae38249
R_MoveExplosions();
R_TimeReport("mexplosion");
R_MoveExplosions();
R_TimeReport("mexplosion");
R_SetupFrame();
R_SetFrustum();
R_SetupFog();
R_SetupFrame();
R_SetFrustum();
R_SetupFog();
R_RegisterModule("R_Textures", r_textures_start, r_textures_shutdown, r_textures_newmap);
}
R_RegisterModule("R_Textures", r_textures_start, r_textures_shutdown, r_textures_newmap);
}
+void R_Textures_Frame (void)
+{
+ // could do procedural texture animation here, if we keep track of which
+ // textures were accessed this frame...
+
+ // free the resize buffers
+ resizebuffersize = 0;
+ if (resizebuffer)
+ {
+ Mem_Free(resizebuffer);
+ resizebuffer = NULL;
+ }
+ if (colorconvertbuffer)
+ {
+ Mem_Free(colorconvertbuffer);
+ colorconvertbuffer = NULL;
+ }
+}
+
static void R_Upload(gltexture_t *glt, qbyte *data)
{
int mip, width, height, internalformat;
static void R_Upload(gltexture_t *glt, qbyte *data)
{
int mip, width, height, internalformat;
// returns height of texture, as was specified when it was uploaded
int R_TextureHeight(rtexture_t *rt);
// returns height of texture, as was specified when it was uploaded
int R_TextureHeight(rtexture_t *rt);
+// frees processing buffers each frame, and may someday animate procedural textures
+void R_Textures_Frame(void);
+