From 633fe954bfd0ef535cdc793fbaa40fb888197bb0 Mon Sep 17 00:00:00 2001 From: sonoro1234 Date: Tue, 21 Jun 2022 19:23:41 +0200 Subject: [PATCH] backend_test: modification for CIMGUI_USE --- backend_test/CMakeLists.txt | 1 + backend_test/main.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/backend_test/CMakeLists.txt b/backend_test/CMakeLists.txt index dce448a..d3928cf 100644 --- a/backend_test/CMakeLists.txt +++ b/backend_test/CMakeLists.txt @@ -99,6 +99,7 @@ target_link_libraries(cimgui_sdl ${IMGUI_LIBRARIES} ${IMGUI_SDL_LIBRARY}) #using library include_directories(../generator/output/) add_executable(test_sdl main.c) +target_compile_definitions(test_sdl PUBLIC -DCIMGUI_USE_OPENGL3 -DCIMGUI_USE_SDL) if (MINGW) target_link_options(test_sdl PRIVATE "-mconsole") endif() diff --git a/backend_test/main.c b/backend_test/main.c index bad666e..4c15b2c 100644 --- a/backend_test/main.c +++ b/backend_test/main.c @@ -114,7 +114,7 @@ int main(int argc, char* argv[]) // start imgui frame ImGui_ImplOpenGL3_NewFrame(); - ImGui_ImplSDL2_NewFrame(window); + ImGui_ImplSDL2_NewFrame(); igNewFrame(); if (showDemoWindow)