diff options
| author | Laszlo Agocs <laszlo.agocs@qt.io> | 2023-08-23 17:57:16 +0200 |
|---|---|---|
| committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2023-08-28 14:10:02 +0200 |
| commit | 735a864360ddacae720c198094735c3e3692f5c3 (patch) | |
| tree | 39bff3c4476376f44c6449696aaf2619cdfdf8d2 /src/network/access/qnetworkrequest.cpp | |
| parent | 39b39f0d5fd971515443f7517c850cc3ad698ef2 (diff) | |
QRhiWidget: Use QRhiRenderTarget as the return type for renderTarget
There is no point in using the more specialized derived class
(QRhiTextureRenderTarget), even though that is what the rt always is.
None of the example and test code needs changes since relying on
QRhiTextureRenderTarget specifics is very rare in practice (now it will
need a static_cast), whereas in the majority of cases the return value
is passed on to other functions, for example, beginPass(), that take
a QRhiRenderTarget.
Change-Id: Ifaebb6320a156ec6a9013e72fede04e520aa9aaf
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'src/network/access/qnetworkrequest.cpp')
0 files changed, 0 insertions, 0 deletions
