mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-25 05:21:16 +00:00
Menu code accessed the screen buffer without a lock
This commit is contained in:
parent
69787fac72
commit
93f43e8751
1 changed files with 4 additions and 0 deletions
|
@ -198,6 +198,8 @@ void DCanvas::DrawTextureParms(FTexture *img, DrawParms &parms)
|
|||
|
||||
viewport->RenderTarget = screen;
|
||||
|
||||
viewport->RenderTarget->Lock(true);
|
||||
|
||||
if (APART(parms.colorOverlay) != 0)
|
||||
{
|
||||
// The software renderer cannot invert the source without inverting the overlay
|
||||
|
@ -324,6 +326,8 @@ void DCanvas::DrawTextureParms(FTexture *img, DrawParms &parms)
|
|||
{
|
||||
NetUpdate();
|
||||
}
|
||||
|
||||
viewport->RenderTarget->Unlock();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue