OSX/Cocoa : discard Cocoa GL view flush while in live resize, and send Window size...
[blender-staging.git] / intern / ghost / intern / GHOST_WindowCocoa.mm
index 83f86840eb4b0b61f978ef69ac4e95478a9bc707..aed9bd07cdc01104e134fe5b14d3d3e36bcea43b 100644 (file)
@@ -280,6 +280,18 @@ extern "C" {
     return YES;
 }
 
+- (void) drawRect:(NSRect)rect
+{
+    if ([self inLiveResize])
+    {
+        //Don't redraw while in live resize
+    }
+    else
+    {
+        [super drawRect:rect];
+    }
+}
+
 @end