Fixed potential black screen on Metal

This commit is contained in:
Lior Halphon 2018-06-16 12:46:57 +03:00
parent 968ff4879a
commit c286203640
1 changed files with 1 additions and 0 deletions

View File

@ -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];
}