rhi: metal: Avoid unused argument warning on iOS

Change-Id: I4cb729f3d8dbe7703b89153b742ce2874f35cfd2
Pick-to: 6.1 6.0
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
This commit is contained in:
Laszlo Agocs 2021-03-10 14:43:32 +01:00
parent 83fb8fe208
commit dd7087342d

View File

@ -2333,6 +2333,9 @@ void QMetalBuffer::endFullDynamicBufferUpdateForCurrentFrame()
static inline MTLPixelFormat toMetalTextureFormat(QRhiTexture::Format format, QRhiTexture::Flags flags, const QRhiMetalData *d)
{
#ifndef Q_OS_MACOS
Q_UNUSED(d);
#endif
const bool srgb = flags.testFlag(QRhiTexture::sRGB);
switch (format) {
case QRhiTexture::RGBA8: