Rename gl_palettedtexture to gl1_palettedtexture.

This commit is contained in:
Yamagi Burmeister 2018-01-09 14:19:00 +01:00
parent f0c4b4fd14
commit 4061e85cd7
5 changed files with 10 additions and 9 deletions

View file

@ -177,7 +177,7 @@ extern cvar_t *r_lerpmodels;
extern cvar_t *r_lightlevel;
extern cvar_t *gl1_overbrightbits;
extern cvar_t *gl_palettedtexture;
extern cvar_t *gl1_palettedtexture;
extern cvar_t *gl_pointparameters;
extern cvar_t *gl_particle_min_size;

View file

@ -669,7 +669,7 @@ R_Upload32Soft(unsigned *data, int width, int height, qboolean mipmap)
{
if (!mipmap)
{
if (qglColorTableEXT && gl_palettedtexture->value &&
if (qglColorTableEXT && gl1_palettedtexture->value &&
(samples == gl_solid_format))
{
uploaded_paletted = true;
@ -699,7 +699,7 @@ R_Upload32Soft(unsigned *data, int width, int height, qboolean mipmap)
R_LightScaleTexture(scaled, scaled_width, scaled_height, !mipmap);
if (qglColorTableEXT && gl_palettedtexture->value &&
if (qglColorTableEXT && gl1_palettedtexture->value &&
(samples == gl_solid_format))
{
uploaded_paletted = true;
@ -740,7 +740,7 @@ R_Upload32Soft(unsigned *data, int width, int height, qboolean mipmap)
miplevel++;
if (qglColorTableEXT && gl_palettedtexture->value &&
if (qglColorTableEXT && gl1_palettedtexture->value &&
(samples == gl_solid_format))
{
uploaded_paletted = true;

View file

@ -89,7 +89,7 @@ cvar_t *gl_particle_att_a;
cvar_t *gl_particle_att_b;
cvar_t *gl_particle_att_c;
cvar_t *gl_palettedtexture;
cvar_t *gl1_palettedtexture;
cvar_t *gl_pointparameters;
cvar_t *gl_drawbuffer;
@ -1243,7 +1243,7 @@ R_Register(void)
gl_anisotropic = ri.Cvar_Get("gl_anisotropic", "0", CVAR_ARCHIVE);
r_lockpvs = ri.Cvar_Get("r_lockpvs", "0", 0);
gl_palettedtexture = ri.Cvar_Get("gl_palettedtexture", "0", CVAR_ARCHIVE);
gl1_palettedtexture = ri.Cvar_Get("gl1_palettedtexture", "0", CVAR_ARCHIVE);
gl_pointparameters = ri.Cvar_Get("gl_pointparameters", "1", CVAR_ARCHIVE);
gl_drawbuffer = ri.Cvar_Get("gl_drawbuffer", "GL_BACK", 0);
@ -1507,7 +1507,7 @@ RI_Init()
gl_config.palettedtexture = false;
if (gl_palettedtexture->value)
if (gl1_palettedtexture->value)
{
if (qglColorTableEXT)
{

View file

@ -286,7 +286,7 @@ GL3_Register(void)
//gl_anisotropic = ri.Cvar_Get("gl_anisotropic", "0", CVAR_ARCHIVE);
//r_lockpvs = ri.Cvar_Get("r_lockpvs", "0", 0);
//gl_palettedtexture = ri.Cvar_Get("gl_palettedtexture", "0", CVAR_ARCHIVE); NOPE.
//gl1_palettedtexture = ri.Cvar_Get("gl1_palettedtexture", "0", CVAR_ARCHIVE); NOPE.
gl_pointparameters = ri.Cvar_Get("gl_pointparameters", "1", CVAR_ARCHIVE);
//gl_drawbuffer = ri.Cvar_Get("gl_drawbuffer", "GL_BACK", 0);

View file

@ -59,7 +59,8 @@ replacement_t replacements[] = {
{"gl_maxfps", "vid_maxfps"},
{"gl_mode", "r_mode"},
{"gl_modulate", "r_modulate"},
{"gl_overbrightbits", "gl1_overbrightbits"}
{"gl_overbrightbits", "gl1_overbrightbits"},
{"gl_palettedtextures", "gl1_palettedtextures"}
};