mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-09-02 02:37:55 +00:00
fixed some guards (in progress)
This commit is contained in:
@@ -186,7 +186,7 @@
|
||||
#endif
|
||||
|
||||
#ifndef CAP_MODEL
|
||||
#define CAP_MODEL (!ISMOBWEB && !ISMINI)
|
||||
#define CAP_MODEL (!ISMOBWEB && !ISMINI && CAP_SDL)
|
||||
#endif
|
||||
|
||||
#ifndef CAP_SAVE
|
||||
@@ -399,6 +399,7 @@ extern "C" {
|
||||
#define CAP_GLEW (CAP_GL && !ISMOBILE && !ISMAC && !ISLINUX && !ISWEB)
|
||||
#endif
|
||||
|
||||
#if CAP_GL
|
||||
#if CAP_GLEW
|
||||
#include <GL/glew.h>
|
||||
#else
|
||||
@@ -422,6 +423,10 @@ extern "C" {
|
||||
#include <GL/glext.h>
|
||||
#endif
|
||||
#endif
|
||||
#else
|
||||
typedef int GLint;
|
||||
typedef unsigned GLuint;
|
||||
#endif
|
||||
|
||||
#include <functional>
|
||||
#include <memory>
|
||||
@@ -560,7 +565,7 @@ union SDL_Event;
|
||||
#endif
|
||||
|
||||
#ifndef CAP_RAY
|
||||
#define CAP_RAY (MAXMDIM >= 4 && !ISWEB && !ISMOBILE)
|
||||
#define CAP_RAY (MAXMDIM >= 4 && !ISWEB && !ISMOBILE && CAP_GL)
|
||||
#endif
|
||||
|
||||
#ifndef CAP_MEMORY_RESERVE
|
||||
|
Reference in New Issue
Block a user