Skip to content

Commit

Permalink
Dedicated Server|Fixed: Fatal GL texture manager error from script in…
Browse files Browse the repository at this point in the history
…terpreter

Don't try to prepare material in R_GetSpriteInfo() when in novideo mode.
  • Loading branch information
skyjake committed Mar 19, 2012
1 parent 4911058 commit 592b318
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions doomsday/engine/portable/src/r_things.c
Expand Up @@ -628,6 +628,16 @@ boolean R_GetSpriteInfo(int sprite, int frame, spriteinfo_t* info)
}

sprFrame = &sprDef->spriteFrames[frame];

if(novideo)
{
// We can't prepare the material.
memset(info, 0, sizeof(*info));
info->numFrames = sprDef->numFrames;
info->flip = sprFrame->flip[0];
return true;
}

mat = sprFrame->mats[0];

spec = Materials_VariantSpecificationForContext(MC_PSPRITE, 0, 1, 0, 0,
Expand Down

0 comments on commit 592b318

Please sign in to comment.