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 0b658cf commit 18afae4Copy full SHA for 18afae4
modules/yup_graphics/native/yup_GraphicsContext_impl.cpp
@@ -24,14 +24,26 @@ namespace yup
24
25
std::unique_ptr<GraphicsContext> GraphicsContext::createContext (Options options)
26
{
27
-#if JUCE_MAC || JUCE_IOS
+#if (JUCE_MAC || JUCE_IOS)
28
+#if YUP_RIVE_USE_METAL
29
return createContext (Api::Metal, options);
30
+#else
31
+ return createContext (Api::OpenGL, options);
32
+#endif
33
+
34
#elif JUCE_WINDOWS
35
+#if YUP_RIVE_USE_D3D
36
return createContext (Api::Direct3D, options);
37
38
39
40
41
#elif JUCE_LINUX || JUCE_WASM || JUCE_ANDROID
42
return createContext (Api::OpenGL, options);
43
44
#else
45
return nullptr;
46
47
#endif
48
}
49
0 commit comments