We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a5b831 commit f6d90f8Copy full SHA for f6d90f8
Modules/@babylonjs/react-native/shared/BabylonNative.cpp
@@ -82,7 +82,7 @@ namespace BabylonNative
82
m_graphicsConfig.Window = window;
83
m_graphicsConfig.Width = width;
84
m_graphicsConfig.Height = height;
85
- #ifdef TARGET_OS_OSX
+ #if TARGET_OS_OSX
86
[[[NSApp mainWindow] contentView] addSubview:window];
87
#endif
88
UpdateGraphicsConfiguration();
@@ -162,7 +162,7 @@ namespace BabylonNative
162
163
void Initialize()
164
{
165
166
id<MTLDevice> dev = MTLCreateSystemDefaultDevice();
167
MTKView *mv = [[MTKView alloc] initWithFrame:[[NSApp mainWindow] frame] device:dev];
168
m_graphicsConfig.Device = dev;
0 commit comments