# HG changeset patch # User John Tsiombikas # Date 1413001087 -10800 # Node ID 827ec716c275fb200e08783332d0bda899f1cdbf # Parent 437fe32ac633e9b36d47c5d4539cc021feed9b80 god I miss glew... diff -r 437fe32ac633 -r 827ec716c275 src/mesh.c --- a/src/mesh.c Sat Oct 04 03:39:14 2014 +0300 +++ b/src/mesh.c Sat Oct 11 07:18:07 2014 +0300 @@ -21,6 +21,13 @@ static void (*glDeleteBuffers)(GLsizei, GLuint*); static void (*glBufferData)(GLenum, unsigned int, const GLvoid*, GLenum); static void (*glBindBuffer)(GLenum, GLuint); +#else +#ifndef GL_GLEXT_PROTOTYPES +GLAPI void APIENTRY glGenBuffers(GLsizei, GLuint*); +GLAPI void APIENTRY glDeleteBuffers(GLsizei, GLuint*); +GLAPI void APIENTRY glBufferData(GLenum, unsigned int, const GLvoid*, GLenum); +GLAPI void APIENTRY glBindBuffer(GLenum, GLuint); +#endif #endif int vrimp_mesh_init(struct mesh *m)