- removed Accel2D variable and a little bit of locking cruft.

This commit is contained in:
Christoph Oelckers 2018-03-27 17:13:10 +02:00
commit 62f073ef60
21 changed files with 35 additions and 257 deletions

View file

@ -70,15 +70,6 @@ void PolyRenderer::RenderView(player_t *player)
RenderActorView(player->mo, false);
#if 0
// Apply special colormap if the target cannot do it
CameraLight *cameraLight = CameraLight::Instance();
if (cameraLight->ShaderColormap() && RenderTarget->IsBgra() && !(r_shadercolormaps && screen->Accel2D))
{
Threads.MainThread()->DrawQueue->Push<ApplySpecialColormapRGBACommand>(cameraLight->ShaderColormap(), screen);
}
#endif
Threads.MainThread()->FlushDrawQueue();
DrawerThreads::WaitForWorkers();
}

View file

@ -418,7 +418,7 @@ void RenderPolyPlayerSprites::RenderSprite(PolyRenderThread *thread, DPSprite *p
// Check for hardware-assisted 2D. If it's available, and this sprite is not
// fuzzy, don't draw it until after the switch to 2D mode.
if (!noaccel && renderTarget == screencanvas && (DFrameBuffer *)screen->Accel2D)
if (!noaccel && renderTarget == screencanvas)
{
FRenderStyle style = vis.RenderStyle;
style.CheckFuzz();