From 3c288120de9cb39dc3ec310a9f0434bc928af34b Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Mon, 11 Jan 2021 18:53:43 +0200 Subject: [PATCH] imgui : use GL3W --- examples/third-party/imgui/CMakeLists.txt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/examples/third-party/imgui/CMakeLists.txt b/examples/third-party/imgui/CMakeLists.txt index 150760f..0c57bb3 100644 --- a/examples/third-party/imgui/CMakeLists.txt +++ b/examples/third-party/imgui/CMakeLists.txt @@ -33,8 +33,8 @@ target_link_libraries(imgui PRIVATE if (GGWAVE_SUPPORT_SDL2) if (MINGW) - find_package(PkgConfig REQUIRED) - pkg_search_module(SDL2 REQUIRED sdl2) + find_package(PkgConfig REQUIRED) + pkg_search_module(SDL2 REQUIRED sdl2) add_library(imgui-sdl2 ${GGWAVE_LIBRARY_TYPE} imgui/examples/libs/gl3w/GL/gl3w.c @@ -90,6 +90,11 @@ if (GGWAVE_SUPPORT_SDL2) imgui-extra/imgui_impl_opengl3.cpp ) + # force GL3W loader + target_compile_definitions(imgui-sdl2 PUBLIC + IMGUI_IMPL_OPENGL_LOADER_GL3W=1 + ) + target_include_directories(imgui-sdl2 PUBLIC imgui/examples/libs/gl3w ${SDL2_INCLUDE_DIRS}