Skip to content

Commit

Permalink
Fixed: Do not attempt to upload busy mode textures when run with -nov…
Browse files Browse the repository at this point in the history
…ideo
  • Loading branch information
danij-deng committed Jul 16, 2011
1 parent 77a23c4 commit 3d5dde5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions doomsday/engine/portable/src/con_busy.c
Expand Up @@ -39,6 +39,7 @@
#include "de_console.h"
#include "de_system.h"
#include "de_graphics.h"
#include "de_render.h"
#include "de_refresh.h"
#include "de_ui.h"
#include "de_misc.h"
Expand Down Expand Up @@ -236,7 +237,7 @@ static void Con_BusyLoadTextures(void)
{
image_t image;

if(isDedicated)
if(isDedicated || novideo)
return;

if(!(busyMode & BUSYF_STARTUP))
Expand Down Expand Up @@ -350,8 +351,8 @@ void Con_ReleaseScreenshotTexture(void)
*/
static void Con_BusyLoop(void)
{
boolean canDraw = !isDedicated;
boolean canUpload = !(isDedicated || (busyMode & BUSYF_NO_UPLOADS));
boolean canDraw = !(isDedicated || novideo);
boolean canUpload = (canDraw && !(busyMode & BUSYF_NO_UPLOADS));
timespan_t startTime = Sys_GetRealSeconds();

if(canDraw)
Expand Down

0 comments on commit 3d5dde5

Please sign in to comment.