Skip to content

Commit 11cd181

Browse files
committed
Add GL constants needed for compatibility with physicsextensions_source package
Signed-off-by: Rye <rye@alchemyviewer.org>
1 parent 82a9248 commit 11cd181

File tree

2 files changed

+18
-7
lines changed

2 files changed

+18
-7
lines changed

indra/llrender/llgl.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,7 @@
5252
#include <glm/gtc/matrix_access.hpp>
5353
#include "glm/gtc/type_ptr.hpp"
5454

55-
#if LL_MESA_HEADLESS
56-
# include "GL/osmesa.h"
57-
# define LL_GET_PROC_ADDRESS(func) OSMesaGetProcAddress(func)
58-
#elif LL_SDL_WINDOW
55+
#if LL_SDL_WINDOW
5956
# include "llwindowsdl.h"
6057
# include "SDL3/SDL.h"
6158
# define LL_GET_PROC_ADDRESS(func) SDL_GL_GetProcAddress(func)

indra/llrender/llglheaders.h

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272

7373
#endif // LL_MESA_HEADLESS / LL_SDL_WINDOW // LL_LINUX / LL_WINDOWS / LL_DARWIN
7474

75-
//GL_NVX_gpu_memory_info constants
75+
// GL_NVX_gpu_memory_info constants
7676
#ifndef GL_NVX_gpu_memory_info
7777
#define GL_NVX_gpu_memory_info
7878
#define GL_GPU_MEMORY_INFO_DEDICATED_VIDMEM_NVX 0x9047
@@ -82,15 +82,15 @@
8282
#define GL_GPU_MEMORY_INFO_EVICTED_MEMORY_NVX 0x904B
8383
#endif
8484

85-
//GL_ATI_meminfo constants
85+
// GL_ATI_meminfo constants
8686
#ifndef GL_ATI_meminfo
8787
#define GL_ATI_meminfo
8888
#define GL_VBO_FREE_MEMORY_ATI 0x87FB
8989
#define GL_TEXTURE_FREE_MEMORY_ATI 0x87FC
9090
#define GL_RENDERBUFFER_FREE_MEMORY_ATI 0x87FD
9191
#endif
9292

93-
//GL_EXT_texture_sRGB constants
93+
// GL_EXT_texture_sRGB constants
9494
#ifndef GL_EXT_texture_sRGB
9595
#define GL_EXT_texture_sRGB 1
9696
#define GL_SRGB_EXT 0x8C40
@@ -111,6 +111,20 @@
111111
#define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT 0x8C4F
112112
#endif /* GL_EXT_texture_sRGB */
113113

114+
// GL_ARB_vertex_buffer_object constants
115+
#ifndef GL_ARB_vertex_buffer_object
116+
#define GL_ARB_vertex_buffer_object 1
117+
#define GL_STREAM_DRAW_ARB 0x88E0
118+
#define GL_STREAM_READ_ARB 0x88E1
119+
#define GL_STREAM_COPY_ARB 0x88E2
120+
#define GL_STATIC_DRAW_ARB 0x88E4
121+
#define GL_STATIC_READ_ARB 0x88E5
122+
#define GL_STATIC_COPY_ARB 0x88E6
123+
#define GL_DYNAMIC_DRAW_ARB 0x88E8
124+
#define GL_DYNAMIC_READ_ARB 0x88E9
125+
#define GL_DYNAMIC_COPY_ARB 0x88EA
126+
#endif
127+
114128
// Deprecated OpenGL defines we still use
115129
#define GL_COLOR_INDEX 0x1900
116130
#define GL_ALPHA 0x1906

0 commit comments

Comments
 (0)