aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/scenegraph/coreapi/qsgtexture.h
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2019-08-29 12:27:59 +0200
committerLaszlo Agocs <laszlo.agocs@qt.io>2019-08-29 15:09:21 +0200
commit54f31a64d01a138e72f79b9585cb90004bbe1e4a (patch)
tree3c3f11c21b766ee9ea0b4b48a245fde673eed5d0 /src/quick/scenegraph/coreapi/qsgtexture.h
parent0aada37644762d4757f9f9b2a76e31389aa91b27 (diff)
Avoid introducing rhiTexture() in the public API of QSGTexture
There is no need for this. The few internal users can get it via QSGTexturePrivate. The original thinking was based on QRhi* being a public API, but that is not the case in the near future. So avoid introducing a public API relying on QRhiTexture. This of course makes it impossible to retrieve the native object under a QSGTexture (as textureId() is not used anymore when rendering with the RHI). For that, an alternative approach will be introduced later on. Change-Id: I0099b23424cafa4958f78c03300b0c934b60d92c Reviewed-by: Christian Strømme <christian.stromme@qt.io>
Diffstat (limited to 'src/quick/scenegraph/coreapi/qsgtexture.h')
-rw-r--r--src/quick/scenegraph/coreapi/qsgtexture.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/quick/scenegraph/coreapi/qsgtexture.h b/src/quick/scenegraph/coreapi/qsgtexture.h
index f2b0e902f3..4cd2a5cddd 100644
--- a/src/quick/scenegraph/coreapi/qsgtexture.h
+++ b/src/quick/scenegraph/coreapi/qsgtexture.h
@@ -113,7 +113,6 @@ public:
// ### Qt 6: make these virtual
int comparisonKey() const;
- QRhiTexture *rhiTexture() const;
void updateRhiTexture(QRhi *rhi, QRhiResourceUpdateBatch *resourceUpdates);
// ### Qt 6: make this an argument for removedFromAtlas()