Proper default value for GL framebuffer lock in Cocoa backend

No more error when running with +map command line parameter with classic HUD:
> VM execution aborted:  Attempt to draw to screen outside a draw function
> Called from BaseStatusBar.DrawImage [Native]
> Called from DoomStatusBar.DrawFullScreenStuff at gzdoom.pk3:zscript/statusbar/doom_sbar.txt, line 140
> Called from DoomStatusBar.Draw at gzdoom.pk3:zscript/statusbar/doom_sbar.txt, line 41
This commit is contained in:
alexey.lysiuk 2017-04-01 13:16:31 +03:00
parent e780cd8297
commit 36ad485edd

View file

@ -1146,7 +1146,7 @@ void CocoaFrameBuffer::Flip()
SDLGLFB::SDLGLFB(void*, const int width, const int height, int, int, const bool fullscreen, bool bgra) SDLGLFB::SDLGLFB(void*, const int width, const int height, int, int, const bool fullscreen, bool bgra)
: DFrameBuffer(width, height, bgra) : DFrameBuffer(width, height, bgra)
, m_lock(-1) , m_lock(0)
, m_isUpdatePending(false) , m_isUpdatePending(false)
{ {
CGGammaValue gammaTable[GAMMA_TABLE_SIZE]; CGGammaValue gammaTable[GAMMA_TABLE_SIZE];