Skip to content

Commit

Permalink
NULLGL fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kintel committed Mar 22, 2023
1 parent 11833e9 commit 6631bfb
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/glview/system-gl.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@
#include <GL/glu.h>
#endif

#else // NULLGL
#define GLint int
#define GLuint unsigned int
inline void glColor4fv(float *c) {}
#endif // NULLGL

#include <string>
#include "printutils.h"

Expand Down Expand Up @@ -88,5 +82,13 @@ bool glCheckd(const char *stmt, const char *file, int line)
#define GL_CHECKD_ERR(stmt, onerror) stmt; if (!glCheckd(#stmt, __FILE__, __LINE__)) { onerror; }
#define GL_CHECKD(...) GET_GL_CHECKD(__VA_ARGS__, GL_CHECKD_ERR, GL_CHECKD_ONLY)(__VA_ARGS__)

#else // NULLGL

#define GLint int
#define GLuint unsigned int
inline void glColor4fv(float *c) {}

#endif // NULLGL

std::string glew_dump();
std::string glew_extensions_dump();

0 comments on commit 6631bfb

Please sign in to comment.