diff options
author | Stijn Buys <ingar@osirion.org> | 2010-11-16 00:15:31 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2010-11-16 00:15:31 +0000 |
commit | 6b6c488d481eabef9eefd487d01c1ab6f0d3fc2a (patch) | |
tree | 734fa4e7973c0130f538a31872de6a8e220728e9 /src/render | |
parent | c78cefd05011037c34c45f587a5358f39f4c1c81 (diff) |
Fixes crash on win32 with VBO enabled
Diffstat (limited to 'src/render')
-rw-r--r-- | src/render/gl.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/render/gl.h b/src/render/gl.h index bdb6dab..e6d6f92 100644 --- a/src/render/gl.h +++ b/src/render/gl.h @@ -221,10 +221,12 @@ void texgeni(GLenum coord, GLenum param, GLenum value); void texgenfv(GLenum coord, GLenum param, const GLfloat* value); -typedef void (* genbuffers_func)(GLuint count, GLuint *id); -typedef void (* deletebuffers_func)(GLuint count, GLuint *id); -typedef void (* bindbuffer_func)(GLenum target, GLuint id); -typedef void (* bufferdata_func)(GLenum target, GLsizei size, const GLvoid *data, GLenum usage); +typedef void (* APIENTRY genbuffers_func)(GLuint count, GLuint *id); +typedef void (* APIENTRY deletebuffers_func)(GLuint count, GLuint *id); +typedef void (* APIENTRY bindbuffer_func)(GLenum target, GLuint id); +typedef void (* APIENTRY bufferdata_func)(GLenum target, GLsizei size, const GLvoid *data, GLenum usage); + +extern "C" { extern genbuffers_func genbuffers; extern deletebuffers_func deletebuffers; @@ -233,4 +235,6 @@ extern bufferdata_func bufferdata; } +} + #endif // __INCLUDED_RENDER_GL_H__ |