mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
removed fastMathEnabled = NO; (#1222)
This commit is contained in:
committed by
Branimir Karadžić
parent
9a7ab977ec
commit
036e4f86c1
@@ -224,14 +224,8 @@ namespace bgfx { namespace mtl
|
||||
|
||||
id<MTLLibrary> 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<MTLLibrary> lib = [m_obj newLibraryWithSource:@(_source) options:options error:&error];
|
||||
id<MTLLibrary> lib = [m_obj newLibraryWithSource:@(_source) options:nil error:&error];
|
||||
BX_WARN(NULL == error
|
||||
, "Shader compilation failed: %s"
|
||||
, [error.localizedDescription cStringUsingEncoding:NSASCIIStringEncoding]
|
||||
|
||||
Reference in New Issue
Block a user