Skip to content

Commit

Permalink
Merge pull request #1172 from cdavis5e/fix-xc11-compilation
Browse files Browse the repository at this point in the history
MVKImage: Fix compilation with Xcode 11.
  • Loading branch information
billhollings authored Dec 4, 2020
2 parents 75e0b5f + 13b1840 commit 33b0e4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MoltenVK/MoltenVK/GPUObjects/MVKImage.mm
Original file line number Diff line number Diff line change
Expand Up @@ -1669,7 +1669,7 @@

switch (mtlPixFmt) {
case MTLPixelFormatR8Unorm:
#ifndef MTLPixelFormatR8Unorm_sRGB
#if MVK_MACOS_APPLE_SILICON || MVK_IOS_OR_TVOS
case MTLPixelFormatR8Unorm_sRGB:
#endif
case MTLPixelFormatR8Snorm:
Expand All @@ -1689,7 +1689,7 @@
break;

case MTLPixelFormatRG8Unorm:
#ifndef MTLPixelFormatRG8Unorm_sRGB
#if MVK_MACOS_APPLE_SILICON || MVK_IOS_OR_TVOS
case MTLPixelFormatRG8Unorm_sRGB:
#endif
case MTLPixelFormatRG8Snorm:
Expand Down

0 comments on commit 33b0e4f

Please sign in to comment.