diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2020-09-23 15:40:06 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2020-09-25 09:24:25 +0200 |
commit | 60871b4fdf1ec977498ec4baa1d33c0972ac434f (patch) | |
tree | 0ade7fd3236119cf8e9698f1958a5665339e2704 /src/gui/rhi/qrhi_p_p.h | |
parent | 342a8f29ea542ff8b65453888a7cc9644dbe66cc (diff) |
rhi: vulkan: Fix mipmap generation for cubemaps
Change-Id: Ia1aab06214be802aaabc97ffefa28947e11148e3
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'src/gui/rhi/qrhi_p_p.h')
-rw-r--r-- | src/gui/rhi/qrhi_p_p.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gui/rhi/qrhi_p_p.h b/src/gui/rhi/qrhi_p_p.h index 13f1c88f2d..0128fd2d4e 100644 --- a/src/gui/rhi/qrhi_p_p.h +++ b/src/gui/rhi/qrhi_p_p.h @@ -393,7 +393,6 @@ public: QRhiTextureCopyDescription desc; QRhiReadbackDescription rb; QRhiReadbackResult *result; - int layer; static TextureOp upload(QRhiTexture *tex, const QRhiTextureUploadDescription &desc) { @@ -424,12 +423,11 @@ public: return op; } - static TextureOp genMips(QRhiTexture *tex, int layer) + static TextureOp genMips(QRhiTexture *tex) { TextureOp op = {}; op.type = GenMips; op.dst = tex; - op.layer = layer; return op; } }; |