From 127de0b1e0835e474b7af376d1a656da387f25ae Mon Sep 17 00:00:00 2001 From: Denis Pauk Date: Mon, 23 Jan 2023 00:27:29 +0200 Subject: [PATCH] rename vk_polyblend to r_polyblend --- README.md | 2 +- src/vk/vk_rmain.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d7b6344..0af0a95 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ windows. * **vk_flashblend**: Toggle the blending of lights onto the environment. (default: `0`) -* **vk_polyblend**: Blend fullscreen effects: blood, powerups etc. +* **r_polyblend**: Blend fullscreen effects: blood, powerups etc. (default: `1`) * **vk_skymip**: Toggle the usage of mipmap information for the sky diff --git a/src/vk/vk_rmain.c b/src/vk/vk_rmain.c index 6d99693..dd34396 100644 --- a/src/vk/vk_rmain.c +++ b/src/vk/vk_rmain.c @@ -103,7 +103,7 @@ cvar_t *vk_molten_metalbuffers; #endif cvar_t *r_clear; cvar_t *r_lockpvs; -static cvar_t *vk_polyblend; +static cvar_t *r_polyblend; cvar_t *r_modulate; cvar_t *vk_shadows; cvar_t *vk_pixel_size; @@ -606,7 +606,7 @@ R_PolyBlend static void R_PolyBlend (void) { - if (!vk_polyblend->value) + if (!r_polyblend->value) return; if (!v_blend[3]) return; @@ -1137,7 +1137,7 @@ R_Register( void ) vk_finish = ri.Cvar_Get("vk_finish", "0", CVAR_ARCHIVE); r_clear = ri.Cvar_Get("r_clear", "0", CVAR_ARCHIVE); r_lockpvs = ri.Cvar_Get("r_lockpvs", "0", 0); - vk_polyblend = ri.Cvar_Get("vk_polyblend", "1", 0); + r_polyblend = ri.Cvar_Get("r_polyblend", "1", 0); r_modulate = ri.Cvar_Get("r_modulate", "1", CVAR_ARCHIVE); vk_shadows = ri.Cvar_Get("r_shadows", "0", CVAR_ARCHIVE); vk_pixel_size = ri.Cvar_Get("vk_pixel_size", "1", CVAR_ARCHIVE);