Skip to content

Commit

Permalink
Include windows.h in compat/gl.h for GLU
Browse files Browse the repository at this point in the history
  • Loading branch information
kb-1000 committed Jun 3, 2024
1 parent d18c5d2 commit 6be2137
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/game/compat/gl.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#pragma once
#include "glad/gl.h"
#ifdef _WIN32
// defines APIENTRY, GL/gl.h includes it but Glad doesn't
# include <windows.h>
#endif
#if defined(__APPLE__) && defined(__MACH__)
# include <OpenGL/glu.h>
#else
Expand Down

0 comments on commit 6be2137

Please sign in to comment.