From 2b8b101fa5f988e934e141752c6498408ba5c646 Mon Sep 17 00:00:00 2001 From: baldurk Date: Fri, 18 Aug 2017 17:23:09 +0100 Subject: [PATCH] Make sure QVariant is available before including renderdoc_replay.h --- qrenderdoc/Code/Interface/QRDInterface.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qrenderdoc/Code/Interface/QRDInterface.h b/qrenderdoc/Code/Interface/QRDInterface.h index 14f76185f..ff5a5e5dd 100644 --- a/qrenderdoc/Code/Interface/QRDInterface.h +++ b/qrenderdoc/Code/Interface/QRDInterface.h @@ -34,10 +34,6 @@ // or not it should be translated #define QFormatStr(fmt) QStringLiteral(fmt) -// we depend on the internal RenderDoc API, but the bindings for that are imported entirely -#define RENDERDOC_QT_COMPAT -#include "renderdoc_replay.h" - // this is pre-declared as an opaque type as we only support converting to QWidget* via PySide class QWidget; @@ -59,6 +55,10 @@ class QWidget; #endif +// we depend on the internal RenderDoc API, but the bindings for that are imported entirely +#define RENDERDOC_QT_COMPAT +#include "renderdoc_replay.h" + #include "CommonPipelineState.h" #include "PersistantConfig.h" #include "RemoteHost.h"