aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-10-29 13:58:14 +0200
committerdec05eba <dec05eba@protonmail.com>2021-10-29 13:58:14 +0200
commit5476dd7d21875d68a4d957f441d34eee2a9e2b37 (patch)
tree87036daac6884287108535fed77f2cd100928d18 /include
parent14e3617736c63bd22b0785ad418acef825db221f (diff)
Fix multiple vertex buffers using the same data
Need to call glVertexPointer/glTexCoordPointer/glColorPointer every time we render.
Diffstat (limited to 'include')
-rw-r--r--include/mgl/gl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mgl/gl.h b/include/mgl/gl.h
index a13406e..c9a709d 100644
--- a/include/mgl/gl.h
+++ b/include/mgl/gl.h
@@ -67,6 +67,8 @@ typedef struct {
void (*glAttachShader)(unsigned int program, unsigned int shader);
int (*glGetUniformLocation)(unsigned int program, const char *name);
void (*glUniform2fv)(int location, int count, const float *value);
+ unsigned int (*glGetError)(void);
+ const unsigned char* (*glGetString)(unsigned int name);
/* Optional*/
void (*glXSwapIntervalEXT)(Display * dpy, GLXDrawable drawable, int interval);