git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@216
d7cf8633-e32d-0410-b094-
e92efae38249
glt->texeldatasize = R_CalcTexelDataSize(width, height, flags & TEXF_MIPMAP);
precache = false;
- if (r_precachetextures.value >= 1)
+ if (flags & TEXF_ALWAYSPRECACHE)
+ precache = true;
+ else if (r_precachetextures.value >= 1)
{
if (flags & TEXF_PRECACHE)
precache = true;
#define TEXF_MIPMAP 2 // mipmapped
#define TEXF_RGBA 4 // 32bit RGBA, as opposed to 8bit paletted
#define TEXF_PRECACHE 8 // upload immediately, otherwise defer loading until it is used (r_textureprecache can override this)
+#define TEXF_ALWAYSPRECACHE 16 // upload immediately, never defer (ignore r_textureprecache)
// contents of this structure are private to gl_textures.c
typedef struct rtexture_s