mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 07:12:07 +00:00
soft: fix m8 image
This commit is contained in:
parent
26bda18549
commit
5cc959e501
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue