diff options
Diffstat (limited to 'src/quick/scenegraph/util/qsgplaintexture_p.h')
-rw-r--r-- | src/quick/scenegraph/util/qsgplaintexture_p.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/quick/scenegraph/util/qsgplaintexture_p.h b/src/quick/scenegraph/util/qsgplaintexture_p.h index 58a22cbfcf..33f47f7fa0 100644 --- a/src/quick/scenegraph/util/qsgplaintexture_p.h +++ b/src/quick/scenegraph/util/qsgplaintexture_p.h @@ -87,9 +87,9 @@ public: void commitTextureOperations(QRhi *rhi, QRhiResourceUpdateBatch *resourceUpdates) override; void setTexture(QRhiTexture *texture); - void setTextureFromNativeObject(QRhi *rhi, QQuickWindow::NativeObjectType type, - quint64 nativeObjectHandle, int nativeLayout, - const QSize &size, bool mipmap); + void setTextureFromNativeTexture(QRhi *rhi, + quint64 nativeObjectHandle, int nativeLayout, + const QSize &size, bool mipmap); static QSGPlainTexture *fromImage(const QImage &image) { QSGPlainTexture *t = new QSGPlainTexture(); @@ -119,6 +119,7 @@ class QSGPlainTexturePrivate : public QSGTexturePrivate { Q_DECLARE_PUBLIC(QSGPlainTexture) public: + QSGPlainTexturePrivate(QSGTexture *t) : QSGTexturePrivate(t) { } QSGTexture::Filtering m_last_mipmap_filter = QSGTexture::None; }; |