Skip to content

Commit

Permalink
test3
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolf65 committed Sep 24, 2023
1 parent 2bd2e46 commit f907b60
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ define update
cd tmp/$1/$3; \
git checkout $4
cd tmp/$1/generator; \
bash generator.sh --target "internal noimstrv comments" --cflags "glfw opengl3 opengl2 sdl2 -DIMGUI_USE_WCHAR32"
bash generator.sh --target "internal noimstrv comments" --cflags "glfw opengl3 opengl2 sdl2 -DIMGUI_USE_WCHAR32 -DGLFW_MOUSE_PASSTHROUGH"
cp -f tmp/$1/$1* cimgui/
if test -e tmp/$1/generator/output/$1*; then \
cp -f tmp/$1/generator/output/$1* cimgui/; \
Expand Down
1 change: 1 addition & 0 deletions glfw_backend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ GLFWwindow *igCreateGLFWWindow(const char *title, int width, int height,
GLFWwindow *window = glfwCreateWindow(width, height, title, NULL, NULL);
if (window == NULL)
return NULL;

glfwMakeContextCurrent(window);
glfwSwapInterval(1); // Enable vsync

Expand Down
1 change: 1 addition & 0 deletions lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ set(IMGUI_LIBRARIES )
add_definitions(-DIMNODES_NAMESPACE=imnodes)

add_definitions(-DIMGUI_USE_WCHAR32)
add_definitions(-DGLFW_MOUSE_PASSTHROUGH)

#glfw
set(GLFW3_PREFIX ${CMAKE_CURRENT_SOURCE_DIR}/../thirdparty/glfw)
Expand Down

0 comments on commit f907b60

Please sign in to comment.