-
Notifications
You must be signed in to change notification settings - Fork 229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Assertion failed when loading qbj_grue #567
Comments
That map includes a 0x0-sized texture " @andrei-drexler Ironwail also gets API errors with this ( |
Is the following good as a backport to QS? Anything missing? diff --git a/Quake/gl_model.c b/Quake/gl_model.c
index 00f5b8ad..05224f26 100644
--- a/Quake/gl_model.c
+++ b/Quake/gl_model.c
@@ -496,6 +496,12 @@ static void Mod_LoadTextures (qmodel_t *mod, byte *mod_base, lump_t *l)
for (j=0 ; j<MIPLEVELS ; j++)
mt->offsets[j] = LittleLong (mt->offsets[j]);
+ if (mt->width == 0 || mt->height == 0)
+ {
+ Con_Warning ("Zero sized texture %s in %s!\n", mt->name, loadmodel->name);
+ continue;
+ }
+
if ( (mt->width & 15) || (mt->height & 15) )
{
if (loadmodel->bspversion != BSPVERSION_QUAKE64) |
It should be OK, it's the same code path as when |
OK, will apply the patch shortly. |
Awesome, thanks @temx! I just wanted to note, probably not really relevant, that the map loaded fine on vkQuake 1.12.2. |
E.g. __TB_empty in qbj_grue.bsp See Novum/vkQuake#567
E.g. __TB_empty in qbj_grue.bsp See Novum/vkQuake#567 (cherry picked from commit 789fbdd)
Thanks for letting me know! |
Hello! I built vkQuake at 7d7f025 on Apple M1 and tried loading Grue's map from Quake Brutalist Jam. Unfortunately, it crashed with the following:
I've noticed it's the same assertion error that was mentioned in issue #561.
The text was updated successfully, but these errors were encountered: