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 2a29521 commit f40e230Copy full SHA for f40e230
src/CMakeLists.txt
@@ -68,6 +68,14 @@ else()
68
)
69
endif()
70
71
+if (${PLATFORM} MATCHES "Web")
72
+ target_link_options(raylib PUBLIC "-sUSE_GLFW=3" -sEXPORTED_RUNTIME_METHODS=ccall -sASYNCIFY)
73
+ if(${GRAPHICS} MATCHES "GRAPHICS_API_OPENGL_ES3")
74
+ target_link_options(raylib PUBLIC "-sMIN_WEBGL_VERSION=2")
75
+ target_link_options(raylib PUBLIC "-sMAX_WEBGL_VERSION=2")
76
+ endif()
77
+endif()
78
+
79
if (${PLATFORM} MATCHES "Web")
80
target_link_options(raylib PUBLIC "-sUSE_GLFW=3")
81
if(${GRAPHICS} MATCHES "GRAPHICS_API_OPENGL_ES3")
0 commit comments