diff --git a/Cocoa/GBViewMetal.m b/Cocoa/GBViewMetal.m index 4d2bac3..0678d9f 100644 --- a/Cocoa/GBViewMetal.m +++ b/Cocoa/GBViewMetal.m @@ -89,8 +89,10 @@ static const vector_float2 rect[] = shader_source = [shader_source stringByReplacingOccurrencesOfString:@"{filter}" withString:scaler_source]; + MTLCompileOptions *options = [[MTLCompileOptions alloc] init]; + options.fastMathEnabled = YES; id library = [device newLibraryWithSource:shader_source - options:nil + options:options error:&error]; if (error) { NSLog(@"Error: %@", error);