Skip to content

Commit

Permalink
hello_imgui_build_lib.cmake: if emscripten, use OpenGl Es3
Browse files Browse the repository at this point in the history
  • Loading branch information
pthom committed Sep 30, 2024
1 parent b06ddb7 commit 6f96155
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions hello_imgui_cmake/hello_imgui_build_lib.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -736,6 +736,11 @@ function(him_has_opengl3 target)

if (IOS OR EMSCRIPTEN)
set(HELLOIMGUI_USE_GLAD OFF CACHE INTERNAL "" FORCE)
target_compile_definitions(${target}
PUBLIC
IMGUI_IMPL_OPENGL_ES3
HELLOIMGUI_USE_GLES3
)
else()
set(HELLOIMGUI_USE_GLAD ON CACHE INTERNAL "" FORCE)
endif()
Expand Down

0 comments on commit 6f96155

Please sign in to comment.