git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12817
d7cf8633-e32d-0410-b094-
e92efae38249
CACHEPICFLAG_NEWPIC = 16, // disables matching texflags check, because a pic created with Draw_NewPic should not be subject to that
CACHEPICFLAG_MIPMAP = 32,
CACHEPICFLAG_NEAREST = 64, // force nearest filtering instead of linear
- CACHEPICFLAG_FAILONMISSING = 128 // return NULL if the pic has no texture
+ CACHEPICFLAG_FAILONMISSING = 128, // return NULL if the pic has no texture
+ CACHEPICFLAG_LINEAR = 256 // force linear filtering even if nearest_2d is enabled
}
cachepicflags_t;
texflags |= TEXF_MIPMAP;
if (!(cachepicflags & CACHEPICFLAG_NOCOMPRESSION) && gl_texturecompression_2d.integer && gl_texturecompression.integer)
texflags |= TEXF_COMPRESS;
- if ((cachepicflags & CACHEPICFLAG_NEAREST) || r_nearest_2d.integer)
+ if (cachepicflags & CACHEPICFLAG_LINEAR)
+ texflags |= TEXF_FORCELINEAR;
+ else if ((cachepicflags & CACHEPICFLAG_NEAREST) || r_nearest_2d.integer)
texflags |= TEXF_FORCENEAREST;
// check whether the picture has already been cached