From c2862036406e60096bd9ccdae7e8b2130b1f4a0f Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Sat, 16 Jun 2018 12:46:57 +0300 Subject: [PATCH] Fixed potential black screen on Metal --- Cocoa/GBViewMetal.m | 1 + 1 file changed, 1 insertion(+) diff --git a/Cocoa/GBViewMetal.m b/Cocoa/GBViewMetal.m index 0678d9f8..34cd50bd 100644 --- a/Cocoa/GBViewMetal.m +++ b/Cocoa/GBViewMetal.m @@ -66,6 +66,7 @@ static const vector_float2 rect[] = length:sizeof(output_resolution) options:MTLResourceStorageModeShared]; + output_resolution = (simd_float2){view.drawableSize.width, view.drawableSize.height}; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(loadShader) name:@"GBFilterChanged" object:nil]; [self loadShader]; }