Buffer API is OpenGL 1.5, so can be used in STATIC_OPENGL
https://git.do.srb2.org/STJr/SRB2/-/commit/623629b04ab72071e6ea4f0c4a3245e6cde72e2c
This commit is contained in:
1 parent
5297d18f92
commit
962abba1b2
1 file changed
+12
-13
@@ -293,11 +293,6 @@ static void GL_MSG_Error(const char *format, ...)
|
||||
#define pglDrawElements glDrawElements
|
||||
#define pglEnableClientState glEnableClientState
|
||||
#define pglDisableClientState glDisableClientState
|
||||
#define pglClientActiveTexture glClientActiveTexture
|
||||
#define pglGenBuffers glGenBuffers
|
||||
#define pglBindBuffer glBindBuffer
|
||||
#define pglBufferData glBufferData
|
||||
#define pglDeleteBuffers glDeleteBuffers
|
||||
|
||||
/* Lighting */
|
||||
#define pglShadeModel glShadeModel
|
||||
@@ -410,14 +405,6 @@ typedef void (APIENTRY * PFNglEnableClientState) (GLenum cap);
|
||||
static PFNglEnableClientState pglEnableClientState;
|
||||
typedef void (APIENTRY * PFNglDisableClientState) (GLenum cap);
|
||||
static PFNglDisableClientState pglDisableClientState;
|
||||
typedef void (APIENTRY * PFNglGenBuffers) (GLsizei n, GLuint *buffers);
|
||||
static PFNglGenBuffers pglGenBuffers;
|
||||
typedef void (APIENTRY * PFNglBindBuffer) (GLenum target, GLuint buffer);
|
||||
static PFNglBindBuffer pglBindBuffer;
|
||||
typedef void (APIENTRY * PFNglBufferData) (GLenum target, GLsizei size, const GLvoid *data, GLenum usage);
|
||||
static PFNglBufferData pglBufferData;
|
||||
typedef void (APIENTRY * PFNglDeleteBuffers) (GLsizei n, const GLuint *buffers);
|
||||
static PFNglDeleteBuffers pglDeleteBuffers;
|
||||
|
||||
/* Lighting */
|
||||
typedef void (APIENTRY * PFNglShadeModel) (GLenum mode);
|
||||
@@ -517,6 +504,16 @@ static PFNglMultiTexCoord2fv pglMultiTexCoord2fv;
|
||||
typedef void (APIENTRY *PFNglClientActiveTexture) (GLenum);
|
||||
static PFNglClientActiveTexture pglClientActiveTexture;
|
||||
|
||||
/* 1.5 functions for buffers */
|
||||
typedef void (APIENTRY * PFNglGenBuffers) (GLsizei n, GLuint *buffers);
|
||||
static PFNglGenBuffers pglGenBuffers;
|
||||
typedef void (APIENTRY * PFNglBindBuffer) (GLenum target, GLuint buffer);
|
||||
static PFNglBindBuffer pglBindBuffer;
|
||||
typedef void (APIENTRY * PFNglBufferData) (GLenum target, GLsizei size, const GLvoid *data, GLenum usage);
|
||||
static PFNglBufferData pglBufferData;
|
||||
typedef void (APIENTRY * PFNglDeleteBuffers) (GLsizei n, const GLuint *buffers);
|
||||
static PFNglDeleteBuffers pglDeleteBuffers;
|
||||
|
||||
// sky dome needs this
|
||||
typedef void (APIENTRY *PFNglColorPointer) (GLint, GLenum, GLsizei, const GLvoid*);
|
||||
static PFNglColorPointer pglColorPointer;
|
||||
@@ -770,6 +767,8 @@ void SetupGLFunc4(void)
|
||||
pglMultiTexCoord2f = GetGLFunc("glMultiTexCoord2f");
|
||||
pglClientActiveTexture = GetGLFunc("glClientActiveTexture");
|
||||
pglMultiTexCoord2fv = GetGLFunc("glMultiTexCoord2fv");
|
||||
|
||||
/* 1.5 funcs */
|
||||
pglGenBuffers = GetGLFunc("glGenBuffers");
|
||||
pglBindBuffer = GetGLFunc("glBindBuffer");
|
||||
pglBufferData = GetGLFunc("glBufferData");
|
||||
|
||||
Reference in new issue
Block a user