summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/plugins/platforms/cocoa/qnsview_drawing.mm5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/plugins/platforms/cocoa/qnsview_drawing.mm b/src/plugins/platforms/cocoa/qnsview_drawing.mm
index 5d637bb6b6..88c5b595e9 100644
--- a/src/plugins/platforms/cocoa/qnsview_drawing.mm
+++ b/src/plugins/platforms/cocoa/qnsview_drawing.mm
@@ -157,8 +157,7 @@
- (CALayer *)makeBackingLayer
{
- bool makeMetalLayer = [self shouldUseMetalLayer:m_platformWindow->window()->surfaceType()];
- if (makeMetalLayer) {
+ if ([self shouldUseMetalLayer:m_platformWindow->window()->surfaceType()]) {
// Check if Metal is supported. If it isn't then it's most likely
// too late at this point and the QWindow will be non-functional,
// but we can at least print a warning.
@@ -183,7 +182,7 @@
- (NSViewLayerContentsRedrawPolicy)layerContentsRedrawPolicy
{
- // We need to set this this excplicitly since the super implementation
+ // We need to set this explicitly since the super implementation
// returns LayerContentsRedrawNever for custom layers like CAMetalLayer.
return NSViewLayerContentsRedrawDuringViewResize;
}