summaryrefslogtreecommitdiffstats
path: root/src/gui/rhi/qrhinull_p_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/rhi/qrhinull_p_p.h')
-rw-r--r--src/gui/rhi/qrhinull_p_p.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/rhi/qrhinull_p_p.h b/src/gui/rhi/qrhinull_p_p.h
index b064e7ad37..ddc75d7716 100644
--- a/src/gui/rhi/qrhinull_p_p.h
+++ b/src/gui/rhi/qrhinull_p_p.h
@@ -76,6 +76,8 @@ struct QNullRenderBuffer : public QRhiRenderBuffer
void destroy() override;
bool create() override;
QRhiTexture::Format backingFormat() const override;
+
+ bool valid = false;
};
struct QNullTexture : public QRhiTexture
@@ -87,6 +89,7 @@ struct QNullTexture : public QRhiTexture
bool create() override;
bool createFrom(NativeTexture src) override;
+ bool valid = false;
QVarLengthArray<std::array<QImage, QRhi::MAX_MIP_LEVELS>, 6> image;
};
@@ -191,6 +194,7 @@ struct QNullSwapChain : public QRhiSwapChain
QRhiRenderPassDescriptor *newCompatibleRenderPassDescriptor() override;
bool createOrResize() override;
+ QWindow *window = nullptr;
QNullReferenceRenderTarget rt;
QNullCommandBuffer cb;
int frameCount = 0;