Skip to content

Commit

Permalink
Replace GLEW with GLAD and actually check OpenGL 3.0 requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
kb-1000 committed Jun 2, 2024
1 parent 7fb313c commit 34a004c
Show file tree
Hide file tree
Showing 12 changed files with 6,486 additions and 19,174 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ make sure your working directory is set to the main directory (the root folder o
then run `make` to compile the binaries.

Several dependencies are required to build on Linux, including: libpng, zlib,
GLEW, GLU, freetype2, libvorbisfile, libvorbis, libogg, libopenal, libbz2,
GLU, freetype2, libvorbisfile, libvorbis, libogg, libopenal, libbz2,
libXRandR, and libcurl.


Expand Down
7 changes: 6 additions & 1 deletion source/game/compat/gl.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
#pragma once
#include <GL/glew.h>
#include "glad/gl.h"
#if defined(__APPLE__) && defined(__MACH__)
# include <OpenGL/glu.h>
#else
# include <GL/glu.h>
#endif
#include "GLFW/glfw3.h"
Loading

0 comments on commit 34a004c

Please sign in to comment.