diff --git a/src/widgets/kernel/qrhiwidget.cpp b/src/widgets/kernel/qrhiwidget.cpp index 742e0ad6aa..f9edd67ab8 100644 --- a/src/widgets/kernel/qrhiwidget.cpp +++ b/src/widgets/kernel/qrhiwidget.cpp @@ -1259,7 +1259,7 @@ QRhiRenderBuffer *QRhiWidget::depthStencilBuffer() const \sa colorTexture(), depthStencilBuffer() */ -QRhiTextureRenderTarget *QRhiWidget::renderTarget() const +QRhiRenderTarget *QRhiWidget::renderTarget() const { Q_D(const QRhiWidget); return d->renderTarget; diff --git a/src/widgets/kernel/qrhiwidget.h b/src/widgets/kernel/qrhiwidget.h index 592c35e737..ace4b18e6b 100644 --- a/src/widgets/kernel/qrhiwidget.h +++ b/src/widgets/kernel/qrhiwidget.h @@ -12,7 +12,7 @@ class QRhiWidgetPrivate; class QRhi; class QRhiTexture; class QRhiRenderBuffer; -class QRhiTextureRenderTarget; +class QRhiRenderTarget; class QRhiCommandBuffer; class Q_WIDGETS_EXPORT QRhiWidget : public QWidget @@ -80,7 +80,7 @@ public: QRhiRenderBuffer *msaaColorBuffer() const; QRhiTexture *resolveTexture() const; QRhiRenderBuffer *depthStencilBuffer() const; - QRhiTextureRenderTarget *renderTarget() const; + QRhiRenderTarget *renderTarget() const; Q_SIGNALS: void frameSubmitted();