soft: fix m8 image

This commit is contained in:
Denis Pauk 2021-04-07 22:58:46 +03:00
parent 26bda18549
commit 5cc959e501
1 changed files with 3 additions and 0 deletions

View File

@ -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);