Fix, Metal validation error with SSR and post-processing turned off (#2550)

This commit is contained in:
Ben Doherty
2020-05-18 13:17:37 -07:00
committed by GitHub
parent 92048e6b65
commit bf13f76dea

View File

@@ -49,6 +49,8 @@ static inline MTLTextureUsage getMetalTextureUsage(TextureUsage usage) {
MetalSwapChain::MetalSwapChain(id<MTLDevice> device, CAMetalLayer* nativeWindow)
: layer(nativeWindow) {
// Needed so we can use the SwapChain as a blit source.
nativeWindow.framebufferOnly = NO;
layer.device = device;
}