|
27 | 27 | #define GL_UNSIGNED_INT_8_8_8_8_REV 0x8367 |
28 | 28 | #define GL_BGR 0x80E0 |
29 | 29 | #define GL_MULTISAMPLE 0x809D |
| 30 | +#define GL_CLAMP_READ_COLOR 0x891C |
| 31 | +#define GL_CLAMP_VERTEX_COLOR 0x891A |
| 32 | +#define GL_CLAMP_FRAGMENT_COLOR 0x891B |
| 33 | +#define GL_FIXED_ONLY 0x891D |
30 | 34 |
|
31 | 35 | //Enums Redefinitions |
32 | 36 | #define GL_CLIP_DISTANCE0 GL_CLIP_DISTANCE0_EXT // GL_EXT_clip_cull_distance |
@@ -268,6 +272,8 @@ static inline void glTexImage2D(GLenum target, GLint level, GLint internalformat |
268 | 272 | glad_glTexImage2D(target, level, internalformat, width, height, border, GL_RGBA, GL_UNSIGNED_BYTE, data); |
269 | 273 | } else if (internalformat == GL_DEPTH_COMPONENT24) { |
270 | 274 | glad_glTexImage2D(target, level, internalformat, width, height, border, format, GL_UNSIGNED_INT, data); |
| 275 | + } else if (internalformat == GL_DEPTH24_STENCIL8) { |
| 276 | + glad_glTexImage2D(target, level, internalformat, width, height, border, GL_DEPTH_STENCIL, GL_UNSIGNED_INT_24_8, data); |
271 | 277 | } else { |
272 | 278 | glad_glTexImage2D(target, level, internalformat, width, height, border, format, type, data); |
273 | 279 | } |
@@ -307,6 +313,9 @@ static inline void glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, |
307 | 313 | Missing functions for ES 3.2 compatibility |
308 | 314 | */ |
309 | 315 |
|
| 316 | +// Used during screenshots, that dont work anyway. |
| 317 | +#define glClampColor(target, clamp) ((void)0) |
| 318 | + |
310 | 319 | // Not present on ES, emulating with glDrawBuffers |
311 | 320 | // Positional mapping: element i must be COLOR_ATTACHMENTi o NONE. |
312 | 321 | // ONLY for blits/clears. For draw calls the location of frag shader |
|
0 commit comments