mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-10 09:41:09 +00:00
TexMgr_SafeTextureSize: take advantage of NPOT textures for mdl skins, 2d graphics, etc. Uses about 35% less texture memory on start.bsp.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1163 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
7be39c651e
commit
4618546e6c
1 changed files with 2 additions and 1 deletions
|
@ -663,6 +663,7 @@ TexMgr_SafeTextureSize -- return a size with hardware and user prefs in mind
|
||||||
*/
|
*/
|
||||||
int TexMgr_SafeTextureSize (int s)
|
int TexMgr_SafeTextureSize (int s)
|
||||||
{
|
{
|
||||||
|
if (!gl_texture_NPOT)
|
||||||
s = TexMgr_Pad(s);
|
s = TexMgr_Pad(s);
|
||||||
if ((int)gl_max_size.value > 0)
|
if ((int)gl_max_size.value > 0)
|
||||||
s = q_min(TexMgr_Pad((int)gl_max_size.value), s);
|
s = q_min(TexMgr_Pad((int)gl_max_size.value), s);
|
||||||
|
|
Loading…
Reference in a new issue