Fix build with -no-feature-opengl
Change-Id: I0e6ead4783ed9bf997c8addb07c2f623da5799cb Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> Reviewed-by: Hatem ElKharashy <hatem.elkharashy@qt.io>
This commit is contained in:
parent
40f863738b
commit
02a98a5646
@ -19,6 +19,7 @@ RENDERDOC_API_1_6_0 *QGraphicsFrameCaptureRenderDoc::s_rdocApi = nullptr;
|
||||
QBasicMutex QGraphicsFrameCaptureRenderDoc::s_frameCaptureMutex;
|
||||
#endif
|
||||
|
||||
#if QT_CONFIG(opengl)
|
||||
static void *glNativeContext(QOpenGLContext *context) {
|
||||
void *nctx = nullptr;
|
||||
if (context != nullptr && context->isValid()) {
|
||||
@ -46,6 +47,8 @@ static void *glNativeContext(QOpenGLContext *context) {
|
||||
}
|
||||
return nctx;
|
||||
}
|
||||
#endif // QT_CONFIG(opengl)
|
||||
|
||||
/*!
|
||||
\class QGraphicsFrameCaptureRenderDoc
|
||||
\internal
|
||||
|
Loading…
Reference in New Issue
Block a user