Fix up rhiwidget manual test after the QWidgetPrivate change

Change-Id: Id3e8d8ce7e175be9b5e9e83e23910546d69a90fa
Reviewed-by: Kristoffer Skau <kristoffer.skau@qt.io>
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
bb10
Laszlo Agocs 2022-11-29 10:43:41 +01:00
parent 60968090ad
commit 9dc3ed288a
1 changed files with 7 additions and 1 deletions

View File

@ -13,7 +13,13 @@ class QRhiWidgetPrivate : public QWidgetPrivate
{
Q_DECLARE_PUBLIC(QRhiWidget)
public:
QRhiTexture *texture() const override { return textureInvalid ? nullptr : t; }
TextureData texture() const override
{
TextureData td;
if (!textureInvalid)
td.textureLeft = t;
return td;
}
QPlatformBackingStoreRhiConfig rhiConfig() const override;
void ensureRhi();