Fix some r_scene_multithreaded related bugs

This commit is contained in:
Magnus Norddahl 2021-02-11 06:31:30 +01:00 committed by Rachael Alexanderson
commit fb87f90d86
3 changed files with 18 additions and 9 deletions

View file

@ -91,7 +91,8 @@ namespace swrenderer
}
static std::mutex loadmutex;
void RenderThread::PrepareTexture(FSoftwareTexture *texture, FRenderStyle style) {
void RenderThread::PrepareTexture(FSoftwareTexture *texture, FRenderStyle style)
{
if (texture == nullptr)
return;
@ -116,7 +117,7 @@ namespace swrenderer
bool alpha = !!(style.Flags & STYLEF_RedIsAlpha);
texture->GetPixels(alpha);
texture->GetColumn(alpha, 0, &spans);
}
}
}
static std::mutex polyobjmutex;