diff options
Diffstat (limited to 'src/gui/rhi/qrhinull.cpp')
-rw-r--r-- | src/gui/rhi/qrhinull.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/gui/rhi/qrhinull.cpp b/src/gui/rhi/qrhinull.cpp index 7b18c9156b..b1ce9b7599 100644 --- a/src/gui/rhi/qrhinull.cpp +++ b/src/gui/rhi/qrhinull.cpp @@ -182,9 +182,10 @@ bool QRhiNull::isDeviceLost() const } QRhiRenderBuffer *QRhiNull::createRenderBuffer(QRhiRenderBuffer::Type type, const QSize &pixelSize, - int sampleCount, QRhiRenderBuffer::Flags flags) + int sampleCount, QRhiRenderBuffer::Flags flags, + QRhiTexture::Format backingFormatHint) { - return new QNullRenderBuffer(this, type, pixelSize, sampleCount, flags); + return new QNullRenderBuffer(this, type, pixelSize, sampleCount, flags, backingFormatHint); } QRhiTexture *QRhiNull::createTexture(QRhiTexture::Format format, const QSize &pixelSize, @@ -564,8 +565,9 @@ bool QNullBuffer::build() } QNullRenderBuffer::QNullRenderBuffer(QRhiImplementation *rhi, Type type, const QSize &pixelSize, - int sampleCount, QRhiRenderBuffer::Flags flags) - : QRhiRenderBuffer(rhi, type, pixelSize, sampleCount, flags) + int sampleCount, QRhiRenderBuffer::Flags flags, + QRhiTexture::Format backingFormatHint) + : QRhiRenderBuffer(rhi, type, pixelSize, sampleCount, flags, backingFormatHint) { } |