diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2018-05-29 14:36:01 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2018-05-30 14:38:53 +0000 |
commit | b6fcc86101ebf031c57b6da80f08a00d658f72b3 (patch) | |
tree | 9b8b9e94ad6110505dfe966683cdf5bf8bebe891 /src/plugins/platforms/cocoa | |
parent | b92db8a4adf985fe842ec0693e17c81d9e816b93 (diff) |
macOS: Minor metal support nits/cleanups
Change-Id: I840426ebf35b0fec64e92386fc3e1cabd91ced25
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/plugins/platforms/cocoa')
-rw-r--r-- | src/plugins/platforms/cocoa/qnsview_drawing.mm | 5 |
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; } |