Skip to content

Commit

Permalink
fix case-sensitive paths on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
HJfod committed Jan 3, 2025
1 parent 0a25ebd commit 08d2ee4
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1164,7 +1164,11 @@ GLAPI void GLAPIENTRY glViewport (GLint x, GLint y, GLsizei width, GLsizei heigh
# if defined(__APPLE__) && defined(__MACH__)
# include <OpenGL/glu.h>
# else
# include <GL/glu.h>
# if defined(__linux__)
# include <gl/GLU.h>
# else
# include <GL/glu.h>
# endif
# endif
#endif

Expand Down
13 changes: 11 additions & 2 deletions loader/include/Geode/cocos/robtop/glfw/glfw3.h
Original file line number Diff line number Diff line change
Expand Up @@ -182,13 +182,22 @@ extern "C" {
#include <GLES3/gl2ext.h>
#endif
#elif !defined(GLFW_INCLUDE_NONE)
#include <GL/gl.h>
// AWESOME: Splat puts stuff in "gl" instead of "GL" which breaks Linux because their paths are case-sensitive
#if defined(__linux__)
#include <gl/gl.h>
#else
#include <GL/gl.h>
#endif
#if defined(GLFW_INCLUDE_GLEXT)
#include <GL/glext.h>
#endif
#endif
#if defined(GLFW_INCLUDE_GLU)
#include <GL/glu.h>
#if defined(__linux__)
#include <gl/GLU.h>
#else
#include <GL/glu.h>
#endif
#endif
#endif

Expand Down

0 comments on commit 08d2ee4

Please sign in to comment.