From 5476dd7d21875d68a4d957f441d34eee2a9e2b37 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 29 Oct 2021 13:58:14 +0200 Subject: Fix multiple vertex buffers using the same data Need to call glVertexPointer/glTexCoordPointer/glColorPointer every time we render. --- include/mgl/gl.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/mgl') 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); -- cgit v1.2.3