From 3408a6560f10819f2423ae6893126358355b7f90 Mon Sep 17 00:00:00 2001 From: Jaime Ita Passos Date: Fri, 11 Dec 2020 18:55:37 -0300 Subject: [PATCH] rename texture to hwrTexture --- src/hardware/hw_cache.c | 4 ++-- src/p_setup.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hardware/hw_cache.c b/src/hardware/hw_cache.c index 7280b0744..85ccc48f0 100644 --- a/src/hardware/hw_cache.c +++ b/src/hardware/hw_cache.c @@ -922,7 +922,7 @@ void HWR_GetLevelFlat(levelflat_t *levelflat) else if (levelflat->type == LEVELFLAT_PNG) { INT32 pngwidth = 0, pngheight = 0; - HWRTexture_t *texture = levelflat->texture; + HWRTexture_t *texture = levelflat->hwrTexture; UINT8 *flat; size_t size; @@ -940,7 +940,7 @@ void HWR_GetLevelFlat(levelflat_t *levelflat) texture = Z_Calloc(sizeof(HWRTexture_t), PU_LEVEL, NULL); texture->format = GPU_TEXFMT_P_8; texture->flags = TF_WRAPXY|TF_CHROMAKEYED; - levelflat->texture = texture; + levelflat->hwrTexture = texture; } if (!texture->data && !texture->downloaded) diff --git a/src/p_setup.h b/src/p_setup.h index 8bf3e6f76..4e32ae7b1 100644 --- a/src/p_setup.h +++ b/src/p_setup.h @@ -79,7 +79,7 @@ typedef struct // for textures UINT8 *picture; #ifdef HWRENDER - void *texture; + void *hwrTexture; #endif } levelflat_t;