diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2019-09-12 16:09:36 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2019-09-13 10:47:34 +0200 |
commit | 39b0a6f152d70eff50fde978c074a6a0860e6394 (patch) | |
tree | 700493cdfea519b8dbc78326b8b75d08ceda829a /src/gui/rhi/qrhinull.cpp | |
parent | af1c3bf884c896e42fd2a8b7847ae86743b2c4ca (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/qrhinull.cpp')
-rw-r--r-- | src/gui/rhi/qrhinull.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/rhi/qrhinull.cpp b/src/gui/rhi/qrhinull.cpp index b58d9f5c56..60d620813b 100644 --- a/src/gui/rhi/qrhinull.cpp +++ b/src/gui/rhi/qrhinull.cpp @@ -169,9 +169,10 @@ void QRhiNull::sendVMemStatsToProfiler() // nothing to do here } -void QRhiNull::makeThreadLocalNativeContextCurrent() +bool QRhiNull::makeThreadLocalNativeContextCurrent() { - // nothing to do here + // not applicable + return false; } void QRhiNull::releaseCachedResources() |