Fixed potential black screen on Metal
This commit is contained in:
parent
968ff4879a
commit
c286203640
@ -66,6 +66,7 @@ static const vector_float2 rect[] =
|
|||||||
length:sizeof(output_resolution)
|
length:sizeof(output_resolution)
|
||||||
options:MTLResourceStorageModeShared];
|
options:MTLResourceStorageModeShared];
|
||||||
|
|
||||||
|
output_resolution = (simd_float2){view.drawableSize.width, view.drawableSize.height};
|
||||||
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(loadShader) name:@"GBFilterChanged" object:nil];
|
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(loadShader) name:@"GBFilterChanged" object:nil];
|
||||||
[self loadShader];
|
[self loadShader];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user