From 7cf214796af14355f00bf9651dd1ddbabf165f0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 29 Sep 2014 09:24:49 +0300 Subject: [PATCH] gl/cocoa: NSView::drawRect() should call into reshape too We a) need to render again because part of the window was obscured and b) might need to reshape because of clipping changes. --- gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m b/gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m index 4f66871799..df481441a3 100644 --- a/gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m +++ b/gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m @@ -530,6 +530,10 @@ resize_cb (gpointer data) gst_object_unref (context); } +- (void)drawRect: (NSRect)dirtyRect { + [self reshape]; +} + - (void)reshape { GstGLWindow *window;