Skip to content

Commit 2fe519b

Browse files
committed
emscripten; Use Glfw3 by default instead of Sdl2
We use pongasoft/emscripten-glfw under emscripten, which has good support for the clipboard
1 parent 88830f0 commit 2fe519b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

hello_imgui_cmake/hello_imgui_build_lib.cmake

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -552,10 +552,9 @@ function(him_sanity_checks)
552552
endif()
553553

554554
if (no_backend_option_chosen AND NOT HELLOIMGUI_USING_VCPKG_TOOLCHAIN)
555-
# use SDL2 for emscripten and iOS, GLFW for the rest
556-
# (We may want to use glfw for emscripten too, using pongasoft/emscripten-glfw
557-
# which is quite good. However this requires more testing)
558-
if (EMSCRIPTEN OR IOS)
555+
# use SDL2 for iOS, GLFW for the rest
556+
# (We use pongasoft/emscripten-glfw under emscripten, which has good support for the clipboard)
557+
if (IOS)
559558
set(HELLOIMGUI_USE_SDL2 ON CACHE BOOL "" FORCE)
560559
set(HELLOIMGUI_HAS_OPENGL3 ON CACHE BOOL "" FORCE)
561560
else()

0 commit comments

Comments
 (0)