Browse Source

metal: fix integer pixel formats not claiming support for sampling.

Sasha Szpakowski 1 year ago
parent
commit
4a0e24c415
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/modules/graphics/metal/Graphics.mm

+ 1 - 1
src/modules/graphics/metal/Graphics.mm

@@ -2027,7 +2027,7 @@ bool Graphics::isPixelFormatSupported(PixelFormat format, uint32 usage)
 		case PIXELFORMAT_RGBA32_INT:
 		case PIXELFORMAT_RGBA32_UINT:
 			// If MSAA support for int formats is added this should be split up.
-			flags |= rt | computewrite;
+			flags |= sample | rt | computewrite;
 			break;
 
 		case PIXELFORMAT_RGBA4_UNORM: