Skip to content

Commit f6d90f8

Browse files
authored
Fix BabylonNative.cpp
1 parent 7a5b831 commit f6d90f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/@babylonjs/react-native/shared/BabylonNative.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ namespace BabylonNative
8282
m_graphicsConfig.Window = window;
8383
m_graphicsConfig.Width = width;
8484
m_graphicsConfig.Height = height;
85-
#ifdef TARGET_OS_OSX
85+
#if TARGET_OS_OSX
8686
[[[NSApp mainWindow] contentView] addSubview:window];
8787
#endif
8888
UpdateGraphicsConfiguration();
@@ -162,7 +162,7 @@ namespace BabylonNative
162162

163163
void Initialize()
164164
{
165-
#ifdef TARGET_OS_OSX
165+
#if TARGET_OS_OSX
166166
id<MTLDevice> dev = MTLCreateSystemDefaultDevice();
167167
MTKView *mv = [[MTKView alloc] initWithFrame:[[NSApp mainWindow] frame] device:dev];
168168
m_graphicsConfig.Device = dev;

0 commit comments

Comments
 (0)