diff options
author | Paul Lemire <paul.lemire@kdab.com> | 2020-08-26 14:24:19 +0200 |
---|---|---|
committer | Paul Lemire <paul.lemire@kdab.com> | 2020-08-27 11:27:52 +0200 |
commit | 07f6f8c835447088217b360a622126c516b485bf (patch) | |
tree | 74846d65704f6b8aafe6ec4c3bdc0031278995d9 /src | |
parent | 76893d4c27bd79d12aeda607090de55b64ee5049 (diff) |
rhi: Textures assume RGBA8_UNorm for RGBAFormat
Change-Id: I2e02f1f846bc2f3d3a3bc7a35a6e3299eda89d56
Reviewed-by: Mike Krus <mike.krus@kdab.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/renderers/rhi/textures/texture.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/renderers/rhi/textures/texture.cpp b/src/plugins/renderers/rhi/textures/texture.cpp index c0dad2364..c2978c77b 100644 --- a/src/plugins/renderers/rhi/textures/texture.cpp +++ b/src/plugins/renderers/rhi/textures/texture.cpp @@ -79,6 +79,7 @@ QRhiTexture::Format rhiFormatFromTextureFormat(QAbstractTexture::TextureFormat f { switch (format) { case QAbstractTexture::RGBA8_UNorm: + case QAbstractTexture::RGBAFormat: case QAbstractTexture::SRGB8_Alpha8: case QAbstractTexture::SRGB8: return QRhiTexture::RGBA8; |