From 5cc959e501cf76ddabde2c5ac9bb69b238451baa Mon Sep 17 00:00:00 2001 From: Denis Pauk Date: Wed, 7 Apr 2021 22:58:46 +0300 Subject: [PATCH] soft: fix m8 image --- src/client/refresh/soft/sw_image.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/client/refresh/soft/sw_image.c b/src/client/refresh/soft/sw_image.c index c9573785..2395c651 100644 --- a/src/client/refresh/soft/sw_image.c +++ b/src/client/refresh/soft/sw_image.c @@ -412,6 +412,8 @@ R_LoadM8 (char *name, imagetype_t type) strcpy (image->name, name); image->width = LittleLong (mt->width[0]); image->height = LittleLong (mt->height[0]); + image->asset_width = image->width; + image->asset_height = image->height; image->type = type; image->registration_sequence = registration_sequence; ofs = LittleLong (mt->offsets[0]); @@ -744,6 +746,7 @@ R_InitTextures (void) r_notexture_mip = &r_notexture_buffer.image; r_notexture_mip->width = r_notexture_mip->height = 16; + r_notexture_mip->asset_width = r_notexture_mip->asset_height = 16; r_notexture_mip->pixels[0] = r_notexture_buffer.buffer; R_RestoreImagePointers(r_notexture_mip, 0);