Fix build errors on macOS 26.

This commit is contained in:
Stefanos Stefanidis 2025-11-02 16:51:46 +02:00
parent 47736862a7
commit 48db410acc
4 changed files with 23 additions and 0 deletions

View File

@ -1,8 +1,15 @@
#include "d3drmrenderer_opengles2.h"
#include "meshutils.h"
#if defined(__APPLE__)
#include <OpenGL/gl.h>
#include <OpenGL/glext.h>
#define GL_DEPTH_COMPONENT24_OES GL_DEPTH_COMPONENT24
#define GL_DEPTH_COMPONENT32_OES GL_DEPTH_COMPONENT32
#else
#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
#endif
#include <SDL3/SDL.h>
#include <algorithm>
#include <string>

View File

@ -1,8 +1,16 @@
#include "d3drmrenderer_opengles3.h"
#include "meshutils.h"
#if defined(__APPLE__)
#include <OpenGL/gl.h>
#include <OpenGL/glext.h>
#define glBindVertexArray glBindVertexArrayAPPLE
#define glGenVertexArrays glGenVertexArraysAPPLE
#define glDeleteVertexArrays glDeleteVertexArraysAPPLE
#else
#include <GLES2/gl2ext.h>
#include <GLES3/gl3.h>
#endif
#include <SDL3/SDL.h>
#include <algorithm>
#include <string>

View File

@ -4,7 +4,11 @@
#include "d3drmtexture_impl.h"
#include "ddraw_impl.h"
#if defined(__APPLE__)
#include <OpenGL/gl.h>
#else
#include <GLES2/gl2.h>
#endif
#include <SDL3/SDL.h>
#include <vector>

View File

@ -4,7 +4,11 @@
#include "d3drmtexture_impl.h"
#include "ddraw_impl.h"
#if defined(__APPLE__)
#include <OpenGL/gl.h>
#else
#include <GLES3/gl3.h>
#endif
#include <SDL3/SDL.h>
#include <vector>