mirror of
https://github.com/minetest/irrlicht.git
synced 2025-07-12 13:20:20 +02:00
Vendor GL headers again
primary reason: The unified GLES2 driver requires OpenGL headers (really), which Android does not provide.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user