summaryrefslogtreecommitdiffstats
path: root/src/gui/rhi/qrhimetal.mm
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2019-09-12 16:09:36 +0200
committerLaszlo Agocs <laszlo.agocs@qt.io>2019-09-13 10:47:34 +0200
commit39b0a6f152d70eff50fde978c074a6a0860e6394 (patch)
tree700493cdfea519b8dbc78326b8b75d08ceda829a /src/gui/rhi/qrhimetal.mm
parentaf1c3bf884c896e42fd2a8b7847ae86743b2c4ca (diff)
rhi: gl: Pick up context loss
...and change the return value of makeThreadLocalNativeContextCurrent() to a bool since we expect this to mirror QOpenGLContext::makeCurrent(). Change-Id: I339507152e461fe28fcf7fe777165e6d0072f055 Reviewed-by: Christian Strømme <christian.stromme@qt.io>
Diffstat (limited to 'src/gui/rhi/qrhimetal.mm')
-rw-r--r--src/gui/rhi/qrhimetal.mm5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/rhi/qrhimetal.mm b/src/gui/rhi/qrhimetal.mm
index 2d85c86bf0..0b1ab72c2c 100644
--- a/src/gui/rhi/qrhimetal.mm
+++ b/src/gui/rhi/qrhimetal.mm
@@ -583,9 +583,10 @@ void QRhiMetal::sendVMemStatsToProfiler()
// nothing to do here
}
-void QRhiMetal::makeThreadLocalNativeContextCurrent()
+bool QRhiMetal::makeThreadLocalNativeContextCurrent()
{
- // nothing to do here
+ // not applicable
+ return false;
}
void QRhiMetal::releaseCachedResources()