Commit 7973c15b authored by Kateryna Kostiuk's avatar Kateryna Kostiuk

videoView: force redraw

If window closed when video running metal view redrawing will broke.
This patch force view redraw after setting a new frame.

Change-Id: If6f1266510061dd7b9d04e95cacf58395fdb4220
parent c838e532
......@@ -178,7 +178,6 @@ typedef NS_ENUM(NSInteger, ViewState) {
[chooseAccountVC updateWithDelegate: self andModel:self.accountModel];
settingsVC = [[AccountSettingsVC alloc] initWithNibName:@"AccountSettings" bundle:nil accountmodel:self.accountModel];
[callView setAutoresizingMask:NSViewWidthSizable | NSViewHeightSizable];
[[currentCallVC view] setAutoresizingMask:NSViewWidthSizable | NSViewHeightSizable];
[[conversationVC view] setAutoresizingMask:NSViewWidthSizable | NSViewHeightSizable];
[[settingsVC view] setAutoresizingMask:NSViewWidthSizable | NSViewHeightSizable];
......
......@@ -215,6 +215,7 @@ bool frameDisplayed = false;
[commandEncoder endEncoding];
[commandBuffer presentDrawable:drawable];
[commandBuffer commit];
[self draw];
}
-(simd::float4x4) getScalingMatrix:(CGFloat) ratio axis:(char) axis {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment