void-packages/srcpkgs/ufoai/patches/sdl2_gl_macros.patch

16 lines
393 B
Diff

--- a/src/client/renderer/r_program.h 2014-06-05 06:18:39.000000000 +0200
+++ b/src/client/renderer/r_program.h 2017-01-25 16:15:42.467269009 +0100
@@ -30,8 +30,12 @@
char name[MAX_QPATH];
} r_shader_t;
+#if !defined(GL_UNIFORM)
#define GL_UNIFORM 1
+#endif
+#if !defined(GL_ATTRIBUTE)
#define GL_ATTRIBUTE 2
+#endif
/* program variables */
typedef struct r_progvar_s {
GLint type;