Vendor GL headers again

primary reason:
The unified GLES2 driver requires OpenGL headers (really), which Android does not provide.
This commit is contained in:
sfan5
2024-02-17 00:14:01 +01:00
parent 8189b2338a
commit 3e8d8440e3
5 changed files with 15014 additions and 134 deletions

View File

@ -7,18 +7,11 @@
#include "irrTypes.h"
// even though we have mt_opengl.h our driver code still uses GL_* constants
#if defined(_IRR_COMPILE_WITH_WINDOWS_DEVICE_)
#include <GL/gl.h>
#include <GL/glext.h>
#elif defined(_IRR_COMPILE_WITH_OSX_DEVICE_)
#include <OpenGL/gl.h>
// not sure if this works without glext.h?
#elif defined(_IRR_COMPILE_WITH_SDL_DEVICE_) && !defined(_IRR_COMPILE_WITH_X11_DEVICE_)
#if defined(_IRR_COMPILE_WITH_SDL_DEVICE_)
#include <SDL_video.h>
#include <SDL_opengl.h>
#else
#include <GL/gl.h>
#include <GL/glext.h>
#include "vendor/gl.h"
#endif
namespace irr