aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStapleButter <thetotalworm@gmail.com>2019-05-25 22:23:43 +0200
committerStapleButter <thetotalworm@gmail.com>2019-05-25 22:23:43 +0200
commit99dbbb0b0464d91ed07ffd67c0b6ef83bc6a293e (patch)
treec5fe8e69f9f7484b0e96ecceb262ecf6368b6cb4
parentdd14a3e88e76e83c3c305c3e73f87ab0f3d4f915 (diff)
gfghfshdf
-rw-r--r--src/OpenGLSupport.h17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/OpenGLSupport.h b/src/OpenGLSupport.h
index 1ae0a35..3f21a4c 100644
--- a/src/OpenGLSupport.h
+++ b/src/OpenGLSupport.h
@@ -46,7 +46,22 @@
// if you need more OpenGL functions, add them to the macronator here
// TODO: handle conditionally loading certain functions for different GL versions
+#ifdef GL_VERSION_1_3
+
+#define DO_PROCLIST_1_3(func)
+
+#else
+
+#define DO_PROCLIST_1_3(func) \
+ func(GLACTIVETEXTURE, glActiveTexture); \
+ func(GLBLENDCOLOR, glBlendColor); \
+
+#endif
+
+
#define DO_PROCLIST(func) \
+ DO_PROCLIST_1_3(func) \
+ \
func(GLGENFRAMEBUFFERS, glGenFramebuffers); \
func(GLDELETEFRAMEBUFFERS, glDeleteFramebuffers); \
func(GLBINDFRAMEBUFFER, glBindFramebuffer); \
@@ -95,14 +110,12 @@
func(GLGETUNIFORMLOCATION, glGetUniformLocation); \
func(GLGETUNIFORMBLOCKINDEX, glGetUniformBlockIndex); \
\
- func(GLACTIVETEXTURE, glActiveTexture); \
func(GLBINDIMAGETEXTURE, glBindImageTexture); \
\
func(GLDRAWBUFFERS, glDrawBuffers); \
\
func(GLBLENDFUNCSEPARATE, glBlendFuncSeparate); \
func(GLBLENDEQUATIONSEPARATE, glBlendEquationSeparate); \
- func(GLBLENDCOLOR, glBlendColor); \
\
func(GLCOLORMASKI, glColorMaski); \
\