backend_test: modification for CIMGUI_USE

This commit is contained in:
sonoro1234
2022-06-21 19:23:41 +02:00
parent a66528f9b1
commit 633fe954bf
2 changed files with 2 additions and 1 deletions

View File

@@ -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()

View File

@@ -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)