Only render player sprites on main thread

This commit is contained in:
Magnus Norddahl 2017-02-04 21:00:05 +01:00
parent beae9a3dc7
commit d1cbb76b63
2 changed files with 2 additions and 3 deletions

View file

@ -48,6 +48,7 @@
#include "swrenderer/drawers/r_thread.h"
#include "swrenderer/r_memory.h"
#include "swrenderer/r_renderthread.h"
#include "swrenderer/things/r_playersprite.h"
EXTERN_CVAR(Bool, r_shadercolormaps)
EXTERN_CVAR(Int, r_clearbuffer)
@ -153,6 +154,7 @@ namespace swrenderer
}
RenderThreadSlices();
MainThread()->PlayerSprites->Render();
RenderDrawQueues();
camera->renderflags = savedflags;

View file

@ -28,7 +28,6 @@
#include "swrenderer/things/r_particle.h"
#include "swrenderer/things/r_sprite.h"
#include "swrenderer/things/r_wallsprite.h"
#include "swrenderer/things/r_playersprite.h"
#include "swrenderer/segments/r_drawsegment.h"
#include "swrenderer/scene/r_portal.h"
#include "swrenderer/scene/r_translucent_pass.h"
@ -213,7 +212,5 @@ namespace swrenderer
clip3d->DeleteHeights();
clip3d->fake3D = 0;
}
Thread->PlayerSprites->Render();
}
}