diff --git a/gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m b/gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m index f0333b94c5..cc88160cb3 100644 --- a/gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m +++ b/gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m @@ -549,6 +549,16 @@ resize_cb (gpointer data) gst_object_unref (context); } +- (void)renewGState { + /* Don't update the screen until we redraw, this + * prevents flickering during scrolling, clipping, + * resizing, etc + */ + [[self window] disableScreenUpdatesUntilFlush]; + + [super renewGState]; +} + - (void)drawRect: (NSRect)dirtyRect { [self reshape]; }