Fix, Metal validation error with SSR and post-processing turned off (#2550)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user