rhi: metal: Avoid unused argument warning on iOS
Change-Id: I4cb729f3d8dbe7703b89153b742ce2874f35cfd2 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> (cherry picked from commit dd7087342dc73ee7adf7b24fc96f79d9d1056682) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
b130d16a27
commit
5a7655832a
@ -2285,6 +2285,9 @@ void QMetalBuffer::endFullDynamicBufferUpdateForCurrentFrame()
|
|||||||
|
|
||||||
static inline MTLPixelFormat toMetalTextureFormat(QRhiTexture::Format format, QRhiTexture::Flags flags, const QRhiMetalData *d)
|
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);
|
const bool srgb = flags.testFlag(QRhiTexture::sRGB);
|
||||||
switch (format) {
|
switch (format) {
|
||||||
case QRhiTexture::RGBA8:
|
case QRhiTexture::RGBA8:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user