summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/io/qsavefile
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2023-05-24 14:26:49 +0200
committerLaszlo Agocs <laszlo.agocs@qt.io>2023-05-30 10:29:55 +0200
commit09597d05f7cb966c9bdc659caa2a8a0a2f6f29b5 (patch)
tree329b6b2304d7cad138723c540f43b446f1978745 /tests/auto/corelib/io/qsavefile
parentafe0bf0914362ff6f8e83ebd17f6cc346805a072 (diff)
rhi: avoid backends modifying the frontend depth and arraySize
Buffer and texture sizes (size, pixelSize) may get increased, if needed, but those actual sizes calculated by the QRhi backends are not written back to the QRhiBuffer m_size or QRhiTexture m_pixelSize. In contrast, both m_depth and m_arraySize are clamped in QRhiTexture by most backends (to ensure a lower bound of 1 and 0, respectively). This is not great since it means the getters for depth() and arraySize() may return values different from what the user has provided. To avoid confusion, do not modify the m_* variables. Change-Id: I2cc5b9abf41ea108549ffd7f2403306e6e8ebba2 Reviewed-by: Jonas Karlsson <jonas.karlsson@qt.io>
Diffstat (limited to 'tests/auto/corelib/io/qsavefile')
0 files changed, 0 insertions, 0 deletions