Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
sfan5 committed Feb 17, 2024
1 parent a51df69 commit e5fad80
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2,100 deletions.
12 changes: 11 additions & 1 deletion source/Irrlicht/COpenGLCommon.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,18 @@
#if defined(_IRR_COMPILE_WITH_SDL_DEVICE_) && defined(IRR_PREFER_SDL_GL_HEADER)
#include <SDL_video.h>
#include <SDL_opengl.h>
#elif defined(_IRR_WINDOWS_API_)
#define GL_GLEXT_LEGACY 1
#include <GL/gl.h>
#include "vendor/glext.h"
#elif defined(_IRR_COMPILE_WITH_OSX_DEVICE_)
#define GL_GLEXT_LEGACY 1
#include <OpenGL/gl.h>
#include "vendor/glext.h"
#else
#include "vendor/gl.h"
#define GL_GLEXT_LEGACY 1
#include <GL/gl.h>
#include "vendor/glext.h"
#endif

#ifndef GL_ARB_shader_objects
Expand Down
15 changes: 14 additions & 1 deletion source/Irrlicht/OpenGL/Common.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,21 @@
#if defined(_IRR_COMPILE_WITH_SDL_DEVICE_)
#include <SDL_video.h>
#include <SDL_opengl.h>
#elif defined(_IRR_WINDOWS_API_)
#define GL_GLEXT_LEGACY 1
#include <GL/gl.h>
#include "vendor/glext.h"
#elif defined(_IRR_COMPILE_WITH_OSX_DEVICE_)
#define GL_GLEXT_LEGACY 1
#include <OpenGL/gl.h>
#include "vendor/glext.h"
#elif defined(_IRR_COMPILE_WITH_ANDROID_DEVICE_)
// also included by the GLES2 driver so need this poor workaround
#include <GLES2/gl2.h>
#else
#include "vendor/gl.h"
#define GL_GLEXT_LEGACY 1
#include <GL/gl.h>
#include "vendor/glext.h"
#endif

namespace irr
Expand Down
Loading

0 comments on commit e5fad80

Please sign in to comment.