summaryrefslogtreecommitdiffstats
path: root/src/gui/rhi/qrhi_p.h
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/qrhi_p.h
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/qrhi_p.h')
-rw-r--r--src/gui/rhi/qrhi_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/rhi/qrhi_p.h b/src/gui/rhi/qrhi_p.h
index 6f0b8e0b04..c73f03cf72 100644
--- a/src/gui/rhi/qrhi_p.h
+++ b/src/gui/rhi/qrhi_p.h
@@ -1414,7 +1414,7 @@ public:
int resourceLimit(ResourceLimit limit) const;
const QRhiNativeHandles *nativeHandles();
- void makeThreadLocalNativeContextCurrent();
+ bool makeThreadLocalNativeContextCurrent();
QRhiProfiler *profiler();