mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-03-10 12:01:43 +00:00
Check that sky texture size is 256x128
(taken from quakespasm-gl4 fork.)
This commit is contained in:
parent
eeda766f12
commit
e3d2fb9fd9
1 changed files with 3 additions and 0 deletions
|
@ -101,6 +101,9 @@ void Sky_LoadTexture (texture_t *mt)
|
||||||
static byte back_data[128*128]; //FIXME: Hunk_Alloc
|
static byte back_data[128*128]; //FIXME: Hunk_Alloc
|
||||||
unsigned *rgba;
|
unsigned *rgba;
|
||||||
|
|
||||||
|
if (mt->width != 256 || mt->height != 128)
|
||||||
|
Sys_Error ("Sky texture %s has wrong size (%d x %d)", mt->name, mt->width, mt->height);
|
||||||
|
|
||||||
src = (byte *)(mt + 1);
|
src = (byte *)(mt + 1);
|
||||||
|
|
||||||
// extract back layer and upload
|
// extract back layer and upload
|
||||||
|
|
Loading…
Reference in a new issue