summaryrefslogtreecommitdiff
path: root/src/video/cocoa/cocoa_ogl.mm
diff options
context:
space:
mode:
Diffstat (limited to 'src/video/cocoa/cocoa_ogl.mm')
-rw-r--r--src/video/cocoa/cocoa_ogl.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video/cocoa/cocoa_ogl.mm b/src/video/cocoa/cocoa_ogl.mm
index 915f43779..c75de1e04 100644
--- a/src/video/cocoa/cocoa_ogl.mm
+++ b/src/video/cocoa/cocoa_ogl.mm
@@ -265,7 +265,7 @@ void VideoDriver_CocoaOpenGL::AllocateBackingStore(bool force)
CGLSetCurrentContext(this->gl_context);
NSRect frame = [ this->cocoaview getRealRect:[ this->cocoaview frame ] ];
OpenGLBackend::Get()->Resize(frame.size.width, frame.size.height, force);
- _screen.dst_ptr = this->GetVideoPointer();
+ if (this->buffer_locked) _screen.dst_ptr = this->GetVideoPointer();
this->dirty_rect = {};
/* Redraw screen */