Skip to content

Commit

Permalink
Fixed Linux compilation after latest GLEW changes
Browse files Browse the repository at this point in the history
  • Loading branch information
FriskTheFallenHuman committed Jul 7, 2024
1 parent 0398ae9 commit 0030314
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 1 addition & 3 deletions neo/libs/imgui/backends/imgui_impl_opengl2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,7 @@

#else // DG: use gl

// Glew
#include "GL/glew.h"
#include "GL/wglew.h"
#include "renderer/qgl.h"

#endif // DG: use gl

Expand Down
4 changes: 4 additions & 0 deletions neo/renderer/qgl.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ If you have questions concerning this license or the applicable additional terms
#endif

#include <GL/glew.h>
#if defined( _WIN32 )
#include <GL/wglew.h>
#else
#define APIENTRY
#endif

#if defined( ID_DEDICATED ) && defined( _WIN32 )
// restore WINGDIAPI
Expand Down

0 comments on commit 0030314

Please sign in to comment.