Skip to content

Commit

Permalink
Merge pull request #20 from ami-iit/fixlincompilation
Browse files Browse the repository at this point in the history
Do not include glext.h if glew.h is also included
  • Loading branch information
S-Dafarra authored May 12, 2022
2 parents 56de12a + 096a80b commit 761a290
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ else()
include(FetchContent)
FetchContent_Declare(glfont
GIT_REPOSITORY https://github.com/ami-iit/GLFont
GIT_TAG 64a02d6dc382e2bc052e90b15d80cc9792d689c5)
GIT_TAG 52224ec565066425ff761dea86b37503f33e03e3)

FetchContent_GetProperties(glfont)
if(NOT glfont_POPULATED)
Expand Down
2 changes: 0 additions & 2 deletions src/devices/openxrheadset/OpenGLConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,10 @@
#elif defined(__APPLE__)
#define GLFW_EXPOSE_NATIVE_COCOA
#define GLFW_EXPOSE_NATIVE_NSGL
#include <GL/glext.h>
#include <GL/glx.h>
#elif defined(__linux__)
#define GLFW_EXPOSE_NATIVE_X11
#define GLFW_EXPOSE_NATIVE_GLX
#include <GL/glext.h>
#include <GL/glx.h>
#endif

Expand Down

0 comments on commit 761a290

Please sign in to comment.