Rename 'intensity' to 'gl1_intensity',

This commit is contained in:
Yamagi Burmeister 2018-02-14 09:35:54 +01:00
parent fe6e147c2b
commit ec1733fb97
3 changed files with 5 additions and 4 deletions

View File

@ -1290,11 +1290,11 @@ R_InitImages(void)
registration_sequence = 1; registration_sequence = 1;
/* init intensity conversions */ /* init intensity conversions */
intensity = ri.Cvar_Get("intensity", "2", CVAR_ARCHIVE); intensity = ri.Cvar_Get("gl1_intensity", "2", CVAR_ARCHIVE);
if (intensity->value <= 1) if (intensity->value <= 1)
{ {
ri.Cvar_Set("intensity", "1"); ri.Cvar_Set("gl1_intensity", "1");
} }
gl_state.inverse_intensity = 1 / intensity->value; gl_state.inverse_intensity = 1 / intensity->value;

View File

@ -80,7 +80,8 @@ replacement_t replacements[] = {
{"gl_swapinterval", "r_vsync"}, {"gl_swapinterval", "r_vsync"},
{"gl_texturealphamode", "gl1_texturealphamode"}, {"gl_texturealphamode", "gl1_texturealphamode"},
{"gl_texturesolidmode", "gl1_texturesolidmode"}, {"gl_texturesolidmode", "gl1_texturesolidmode"},
{"gl_ztrick", "gl1_ztrick"} {"gl_ztrick", "gl1_ztrick"},
{"intensity", "gl1_intensity"}
}; };

View File

@ -188,7 +188,7 @@ Graphics (GL renderers only):
Graphics (GL1 only): Graphics (GL1 only):
-------------------- --------------------
* **intensity**: Sets the color intensity used for 3D rendering. * **gl1_intensity**: Sets the color intensity used for 3D rendering.
Must be a floating point value, at least `1.0` - default is `2.0`. Must be a floating point value, at least `1.0` - default is `2.0`.
Applied when textures are loaded, so it needs a `vid_restart`! Applied when textures are loaded, so it needs a `vid_restart`!