From 036e4f86c10b90516773bf8a3634599bc8d45f53 Mon Sep 17 00:00:00 2001 From: attilaz Date: Sat, 19 Aug 2017 19:13:26 +0200 Subject: [PATCH] removed fastMathEnabled = NO; (#1222) --- src/renderer_mtl.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/renderer_mtl.h b/src/renderer_mtl.h index 1e6e74d02..96362ebc0 100644 --- a/src/renderer_mtl.h +++ b/src/renderer_mtl.h @@ -224,14 +224,8 @@ namespace bgfx { namespace mtl id newLibraryWithSource(const char* _source) { - MTLCompileOptions* options = [MTLCompileOptions new]; - //NOTE: turned of as 'When using the fast variants, math functions execute more quickly, - // but operate over a **LIMITED RANGE** and their behavior when handling NaN values is not defined.' - if (BX_ENABLED(BX_PLATFORM_IOS)) - options.fastMathEnabled = NO; - NSError* error; - id lib = [m_obj newLibraryWithSource:@(_source) options:options error:&error]; + id lib = [m_obj newLibraryWithSource:@(_source) options:nil error:&error]; BX_WARN(NULL == error , "Shader compilation failed: %s" , [error.localizedDescription cStringUsingEncoding:NSASCIIStringEncoding]