Skip to content

Commit

Permalink
Added rend-tex-external-always
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Jul 6, 2003
1 parent e89fd27 commit 2a295d4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions doomsday/Include/gl_tex.h
Expand Up @@ -21,6 +21,7 @@ typedef struct image_s {
} image_t;

extern int mipmapping, linearRaw, texQuality, filterSprites;
extern boolean loadExtAlways;
extern float texw, texh;
extern int texmask;
extern detailinfo_t *texdetail;
Expand Down
1 change: 1 addition & 0 deletions doomsday/Src/con_console.c
Expand Up @@ -323,6 +323,7 @@ cvar_t engineCVars[] =
"rend-tex-gamma", CVF_PROTECTED, CVT_INT, &usegamma, 0, 4, "The gamma correction level (0-4).",
"rend-tex-mipmap", CVF_PROTECTED, CVT_INT, &mipmapping, 0, 5, "The mipmapping mode for textures.",
"rend-tex-paletted", CVF_PROTECTED, CVT_BYTE, &paletted, 0, 1, "1=Use the GL_EXT_shared_texture_palette extension.",
"rend-tex-external-always", 0, CVT_BYTE, &loadExtAlways, 0, 1, "1=Always use external texture resources (overrides -pwadtex).",
"rend-tex-quality", 0, CVT_INT, &texQuality, 0, 8, "The quality of textures (0-8).",
"rend-tex-filter-sprite", 0, CVT_INT, &filterSprites, 0, 1, "1=Render smooth sprites.",
"rend-tex-filter-raw", CVF_PROTECTED, CVT_INT, &linearRaw, 0, 1, "1=Fullscreen images (320x200) use linear interpolation.",
Expand Down
5 changes: 3 additions & 2 deletions doomsday/Src/gl_tex.c
Expand Up @@ -89,6 +89,7 @@ extern boolean s3tcAvailable;
// PUBLIC DATA DEFINITIONS -------------------------------------------------

boolean filloutlines = true;
boolean loadExtAlways = false; // Always check for extres (cvar)
boolean paletted = false; // Use GL_EXT_paletted_texture (cvar)
boolean load8bit = false; // Load textures as 8 bit? (with paltex)

Expand Down Expand Up @@ -1746,7 +1747,7 @@ unsigned int GL_PrepareTexture(int idx)
if(!textures[idx]->tex)
{
// Try to load a high resolution version of this texture.
if((highResWithPWAD || !R_IsCustomTexture(idx))
if((loadExtAlways || highResWithPWAD || !R_IsCustomTexture(idx))
&& GL_LoadHighResTexture(&image, tex->name) != NULL)
{
// High resolution texture loaded.
Expand Down Expand Up @@ -2015,7 +2016,7 @@ unsigned int GL_PrepareSky(int idx, boolean zeroMask)
if(!textures[idx]->tex)
{
// Try to load a high resolution version of this texture.
if((highResWithPWAD || !R_IsCustomTexture(idx))
if((loadExtAlways || highResWithPWAD || !R_IsCustomTexture(idx))
&& GL_LoadHighResTexture(&image, textures[idx]->name) != NULL)
{
// High resolution texture loaded.
Expand Down

0 comments on commit 2a295d4

Please sign in to comment.