Skip to content

Commit

Permalink
Downgrade glfw version
Browse files Browse the repository at this point in the history
  • Loading branch information
feragon committed Jun 19, 2020
1 parent 97baaab commit 81cbaa7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion luacmdinterface/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ find_package(CURL REQUIRED)
include_directories(${CURL_INCLUDE_DIRS})
link_directories(${CURL_LIBRARY_DIRS})

find_package(glfw3 3.3 REQUIRED)
find_package(glfw3 3.2 REQUIRED)

# Eigen 3
find_package(Eigen3 REQUIRED)
Expand Down
2 changes: 1 addition & 1 deletion unittest/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ if(WITH_RENDERING_UNITTESTS)
find_package(Boost COMPONENTS program_options filesystem system log REQUIRED)
include_directories(${Boost_INCLUDE_DIRS})

find_package(glfw3 3.3 REQUIRED)
find_package(glfw3 3.2 REQUIRED)

set(EXTRA_LIBS
${EXTRA_LIBS}
Expand Down
4 changes: 1 addition & 3 deletions unittest/rendering/renderingtest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,8 @@ void render(const std::string& dxf, const std::string& output, unsigned int imag
GLFWwindow* window;
window = glfwCreateWindow(imageWidth, imageHeight, "LibreCAD", nullptr, nullptr);
if(window == nullptr) {
const char* description;
glfwGetError(&description);
glfwTerminate();
FAIL() << "Failed opening GLFW: " << description << std::endl;
FAIL() << "Failed opening GLFW: " << std::endl;
}

glfwMakeContextCurrent(window);
Expand Down

0 comments on commit 81cbaa7

Please sign in to comment.