#define NUM_TYPES 8
+static struct _glapi_table *
+get_dispatch(void)
+{
+ GET_CURRENT_CONTEXT(ctx);
+ return ctx->CurrentServerDispatch;
+}
+
/**
** GL_NV_vertex_program
static void GLAPIENTRY
VertexAttrib1NbvNV(GLuint index, const GLbyte *v)
{
- CALL_VertexAttrib1fNV(GET_DISPATCH(), (index, BYTE_TO_FLOAT(v[0])));
+ CALL_VertexAttrib1fNV(get_dispatch(), (index, BYTE_TO_FLOAT(v[0])));
}
static void GLAPIENTRY
VertexAttrib1bvNV(GLuint index, const GLbyte *v)
{
- CALL_VertexAttrib1fNV(GET_DISPATCH(), (index, (GLfloat)v[0]));
+ CALL_VertexAttrib1fNV(get_dispatch(), (index, (GLfloat)v[0]));
}
static void GLAPIENTRY
VertexAttrib2NbvNV(GLuint index, const GLbyte *v)
{
- CALL_VertexAttrib2fNV(GET_DISPATCH(), (index, BYTE_TO_FLOAT(v[0]), BYTE_TO_FLOAT(v[1])));
+ CALL_VertexAttrib2fNV(get_dispatch(), (index, BYTE_TO_FLOAT(v[0]), BYTE_TO_FLOAT(v[1])));
}
static void GLAPIENTRY
VertexAttrib2bvNV(GLuint index, const GLbyte *v)
{
- CALL_VertexAttrib2fNV(GET_DISPATCH(), (index, (GLfloat)v[0], (GLfloat)v[1]));
+ CALL_VertexAttrib2fNV(get_dispatch(), (index, (GLfloat)v[0], (GLfloat)v[1]));
}
static void GLAPIENTRY
VertexAttrib3NbvNV(GLuint index, const GLbyte *v)
{
- CALL_VertexAttrib3fNV(GET_DISPATCH(), (index, BYTE_TO_FLOAT(v[0]),
+ CALL_VertexAttrib3fNV(get_dispatch(), (index, BYTE_TO_FLOAT(v[0]),
BYTE_TO_FLOAT(v[1]),
BYTE_TO_FLOAT(v[2])));
}
static void GLAPIENTRY
VertexAttrib3bvNV(GLuint index, const GLbyte *v)
{
- CALL_VertexAttrib3fNV(GET_DISPATCH(), (index, (GLfloat)v[0], (GLfloat)v[1], (GLfloat)v[2]));
+ CALL_VertexAttrib3fNV(get_dispatch(), (index, (GLfloat)v[0], (GLfloat)v[1], (GLfloat)v[2]));
}
static void GLAPIENTRY
VertexAttrib4NbvNV(GLuint index, const GLbyte *v)
{
- CALL_VertexAttrib4fNV(GET_DISPATCH(), (index, BYTE_TO_FLOAT(v[0]),
+ CALL_VertexAttrib4fNV(get_dispatch(), (index, BYTE_TO_FLOAT(v[0]),
BYTE_TO_FLOAT(v[1]),
BYTE_TO_FLOAT(v[2]),
BYTE_TO_FLOAT(v[3])));
static void GLAPIENTRY
VertexAttrib4bvNV(GLuint index, const GLbyte *v)
{
- CALL_VertexAttrib4fNV(GET_DISPATCH(), (index, (GLfloat)v[0], (GLfloat)v[1], (GLfloat)v[2], (GLfloat)v[3]));
+ CALL_VertexAttrib4fNV(get_dispatch(), (index, (GLfloat)v[0], (GLfloat)v[1], (GLfloat)v[2], (GLfloat)v[3]));
}
/* GL_UNSIGNED_BYTE attributes */
static void GLAPIENTRY
VertexAttrib1NubvNV(GLuint index, const GLubyte *v)
{
- CALL_VertexAttrib1fNV(GET_DISPATCH(), (index, UBYTE_TO_FLOAT(v[0])));
+ CALL_VertexAttrib1fNV(get_dispatch(), (index, UBYTE_TO_FLOAT(v[0])));
}
static void GLAPIENTRY
VertexAttrib1ubvNV(GLuint index, const GLubyte *v)
{
- CALL_VertexAttrib1fNV(GET_DISPATCH(), (index, (GLfloat)v[0]));
+ CALL_VertexAttrib1fNV(get_dispatch(), (index, (GLfloat)v[0]));
}
static void GLAPIENTRY
VertexAttrib2NubvNV(GLuint index, const GLubyte *v)
{
- CALL_VertexAttrib2fNV(GET_DISPATCH(), (index, UBYTE_TO_FLOAT(v[0]),
+ CALL_VertexAttrib2fNV(get_dispatch(), (index, UBYTE_TO_FLOAT(v[0]),
UBYTE_TO_FLOAT(v[1])));
}
static void GLAPIENTRY
VertexAttrib2ubvNV(GLuint index, const GLubyte *v)
{
- CALL_VertexAttrib2fNV(GET_DISPATCH(), (index, (GLfloat)v[0], (GLfloat)v[1]));
+ CALL_VertexAttrib2fNV(get_dispatch(), (index, (GLfloat)v[0], (GLfloat)v[1]));
}
static void GLAPIENTRY
VertexAttrib3NubvNV(GLuint index, const GLubyte *v)
{
- CALL_VertexAttrib3fNV(GET_DISPATCH(), (index, UBYTE_TO_FLOAT(v[0]),
+ CALL_VertexAttrib3fNV(get_dispatch(), (index, UBYTE_TO_FLOAT(v[0]),
UBYTE_TO_FLOAT(v[1]),
UBYTE_TO_FLOAT(v[2])));
}
static void GLAPIENTRY
VertexAttrib3ubvNV(GLuint index, const GLubyte *v)
{
- CALL_VertexAttrib3fNV(GET_DISPATCH(), (index, (GLfloat)v[0],
+ CALL_VertexAttrib3fNV(get_dispatch(), (index, (GLfloat)v[0],
(GLfloat)v[1], (GLfloat)v[2]));
}
static void GLAPIENTRY
VertexAttrib4NubvNV(GLuint index, const GLubyte *v)
{
- CALL_VertexAttrib4fNV(GET_DISPATCH(), (index, UBYTE_TO_FLOAT(v[0]),
+ CALL_VertexAttrib4fNV(get_dispatch(), (index, UBYTE_TO_FLOAT(v[0]),
UBYTE_TO_FLOAT(v[1]),
UBYTE_TO_FLOAT(v[2]),
UBYTE_TO_FLOAT(v[3])));
static void GLAPIENTRY
VertexAttrib4ubvNV(GLuint index, const GLubyte *v)
{
- CALL_VertexAttrib4fNV(GET_DISPATCH(), (index, (GLfloat)v[0],
+ CALL_VertexAttrib4fNV(get_dispatch(), (index, (GLfloat)v[0],
(GLfloat)v[1], (GLfloat)v[2],
(GLfloat)v[3]));
}
static void GLAPIENTRY
VertexAttrib1NsvNV(GLuint index, const GLshort *v)
{
- CALL_VertexAttrib1fNV(GET_DISPATCH(), (index, SHORT_TO_FLOAT(v[0])));
+ CALL_VertexAttrib1fNV(get_dispatch(), (index, SHORT_TO_FLOAT(v[0])));
}
static void GLAPIENTRY
VertexAttrib1svNV(GLuint index, const GLshort *v)
{
- CALL_VertexAttrib1fNV(GET_DISPATCH(), (index, (GLfloat)v[0]));
+ CALL_VertexAttrib1fNV(get_dispatch(), (index, (GLfloat)v[0]));
}
static void GLAPIENTRY
VertexAttrib2NsvNV(GLuint index, const GLshort *v)
{
- CALL_VertexAttrib2fNV(GET_DISPATCH(), (index, SHORT_TO_FLOAT(v[0]),
+ CALL_VertexAttrib2fNV(get_dispatch(), (index, SHORT_TO_FLOAT(v[0]),
SHORT_TO_FLOAT(v[1])));
}
static void GLAPIENTRY
VertexAttrib2svNV(GLuint index, const GLshort *v)
{
- CALL_VertexAttrib2fNV(GET_DISPATCH(), (index, (GLfloat)v[0], (GLfloat)v[1]));
+ CALL_VertexAttrib2fNV(get_dispatch(), (index, (GLfloat)v[0], (GLfloat)v[1]));
}
static void GLAPIENTRY
VertexAttrib3NsvNV(GLuint index, const GLshort *v)
{
- CALL_VertexAttrib3fNV(GET_DISPATCH(), (index, SHORT_TO_FLOAT(v[0]),
+ CALL_VertexAttrib3fNV(get_dispatch(), (index, SHORT_TO_FLOAT(v[0]),
SHORT_TO_FLOAT(v[1]),
SHORT_TO_FLOAT(v[2])));
}
static void GLAPIENTRY
VertexAttrib3svNV(GLuint index, const GLshort *v)
{
- CALL_VertexAttrib3fNV(GET_DISPATCH(), (index, (GLfloat)v[0], (GLfloat)v[1],
+ CALL_VertexAttrib3fNV(get_dispatch(), (index, (GLfloat)v[0], (GLfloat)v[1],
(GLfloat)v[2]));
}
static void GLAPIENTRY
VertexAttrib4NsvNV(GLuint index, const GLshort *v)
{
- CALL_VertexAttrib4fNV(GET_DISPATCH(), (index, SHORT_TO_FLOAT(v[0]),
+ CALL_VertexAttrib4fNV(get_dispatch(), (index, SHORT_TO_FLOAT(v[0]),
SHORT_TO_FLOAT(v[1]),
SHORT_TO_FLOAT(v[2]),
SHORT_TO_FLOAT(v[3])));
static void GLAPIENTRY
VertexAttrib4svNV(GLuint index, const GLshort *v)
{
- CALL_VertexAttrib4fNV(GET_DISPATCH(), (index, (GLfloat)v[0], (GLfloat)v[1],
+ CALL_VertexAttrib4fNV(get_dispatch(), (index, (GLfloat)v[0], (GLfloat)v[1],
(GLfloat)v[2], (GLfloat)v[3]));
}
static void GLAPIENTRY
VertexAttrib1NusvNV(GLuint index, const GLushort *v)
{
- CALL_VertexAttrib1fNV(GET_DISPATCH(), (index, USHORT_TO_FLOAT(v[0])));
+ CALL_VertexAttrib1fNV(get_dispatch(), (index, USHORT_TO_FLOAT(v[0])));
}
static void GLAPIENTRY
VertexAttrib1usvNV(GLuint index, const GLushort *v)
{
- CALL_VertexAttrib1fNV(GET_DISPATCH(), (index, (GLfloat)v[0]));
+ CALL_VertexAttrib1fNV(get_dispatch(), (index, (GLfloat)v[0]));
}
static void GLAPIENTRY
VertexAttrib2NusvNV(GLuint index, const GLushort *v)
{
- CALL_VertexAttrib2fNV(GET_DISPATCH(), (index, USHORT_TO_FLOAT(v[0]),
+ CALL_VertexAttrib2fNV(get_dispatch(), (index, USHORT_TO_FLOAT(v[0]),
USHORT_TO_FLOAT(v[1])));
}
static void GLAPIENTRY
VertexAttrib2usvNV(GLuint index, const GLushort *v)
{
- CALL_VertexAttrib2fNV(GET_DISPATCH(), (index, (GLfloat)v[0],
+ CALL_VertexAttrib2fNV(get_dispatch(), (index, (GLfloat)v[0],
(GLfloat)v[1]));
}
static void GLAPIENTRY
VertexAttrib3NusvNV(GLuint index, const GLushort *v)
{
- CALL_VertexAttrib3fNV(GET_DISPATCH(), (index, USHORT_TO_FLOAT(v[0]),
+ CALL_VertexAttrib3fNV(get_dispatch(), (index, USHORT_TO_FLOAT(v[0]),
USHORT_TO_FLOAT(v[1]),
USHORT_TO_FLOAT(v[2])));
}
static void GLAPIENTRY
VertexAttrib3usvNV(GLuint index, const GLushort *v)
{
- CALL_VertexAttrib3fNV(GET_DISPATCH(), (index, (GLfloat)v[0], (GLfloat)v[1],
+ CALL_VertexAttrib3fNV(get_dispatch(), (index, (GLfloat)v[0], (GLfloat)v[1],
(GLfloat)v[2]));
}
static void GLAPIENTRY
VertexAttrib4NusvNV(GLuint index, const GLushort *v)
{
- CALL_VertexAttrib4fNV(GET_DISPATCH(), (index, USHORT_TO_FLOAT(v[0]),
+ CALL_VertexAttrib4fNV(get_dispatch(), (index, USHORT_TO_FLOAT(v[0]),
USHORT_TO_FLOAT(v[1]),
USHORT_TO_FLOAT(v[2]),
USHORT_TO_FLOAT(v[3])));
static void GLAPIENTRY
VertexAttrib4usvNV(GLuint index, const GLushort *v)
{
- CALL_VertexAttrib4fNV(GET_DISPATCH(), (index, (GLfloat)v[0], (GLfloat)v[1],
+ CALL_VertexAttrib4fNV(get_dispatch(), (index, (GLfloat)v[0], (GLfloat)v[1],
(GLfloat)v[2], (GLfloat)v[3]));
}
static void GLAPIENTRY
VertexAttrib1NivNV(GLuint index, const GLint *v)
{
- CALL_VertexAttrib1fNV(GET_DISPATCH(), (index, INT_TO_FLOAT(v[0])));
+ CALL_VertexAttrib1fNV(get_dispatch(), (index, INT_TO_FLOAT(v[0])));
}
static void GLAPIENTRY
VertexAttrib1ivNV(GLuint index, const GLint *v)
{
- CALL_VertexAttrib1fNV(GET_DISPATCH(), (index, (GLfloat)v[0]));
+ CALL_VertexAttrib1fNV(get_dispatch(), (index, (GLfloat)v[0]));
}
static void GLAPIENTRY
VertexAttrib2NivNV(GLuint index, const GLint *v)
{
- CALL_VertexAttrib2fNV(GET_DISPATCH(), (index, INT_TO_FLOAT(v[0]),
+ CALL_VertexAttrib2fNV(get_dispatch(), (index, INT_TO_FLOAT(v[0]),
INT_TO_FLOAT(v[1])));
}
static void GLAPIENTRY
VertexAttrib2ivNV(GLuint index, const GLint *v)
{
- CALL_VertexAttrib2fNV(GET_DISPATCH(), (index, (GLfloat)v[0], (GLfloat)v[1]));
+ CALL_VertexAttrib2fNV(get_dispatch(), (index, (GLfloat)v[0], (GLfloat)v[1]));
}
static void GLAPIENTRY
VertexAttrib3NivNV(GLuint index, const GLint *v)
{
- CALL_VertexAttrib3fNV(GET_DISPATCH(), (index, INT_TO_FLOAT(v[0]),
+ CALL_VertexAttrib3fNV(get_dispatch(), (index, INT_TO_FLOAT(v[0]),
INT_TO_FLOAT(v[1]),
INT_TO_FLOAT(v[2])));
}
static void GLAPIENTRY
VertexAttrib3ivNV(GLuint index, const GLint *v)
{
- CALL_VertexAttrib3fNV(GET_DISPATCH(), (index, (GLfloat)v[0], (GLfloat)v[1],
+ CALL_VertexAttrib3fNV(get_dispatch(), (index, (GLfloat)v[0], (GLfloat)v[1],
(GLfloat)v[2]));
}
static void GLAPIENTRY
VertexAttrib4NivNV(GLuint index, const GLint *v)
{
- CALL_VertexAttrib4fNV(GET_DISPATCH(), (index, INT_TO_FLOAT(v[0]),
+ CALL_VertexAttrib4fNV(get_dispatch(), (index, INT_TO_FLOAT(v[0]),
INT_TO_FLOAT(v[1]),
INT_TO_FLOAT(v[2]),
INT_TO_FLOAT(v[3])));
static void GLAPIENTRY
VertexAttrib4ivNV(GLuint index, const GLint *v)
{
- CALL_VertexAttrib4fNV(GET_DISPATCH(), (index, (GLfloat)v[0], (GLfloat)v[1],
+ CALL_VertexAttrib4fNV(get_dispatch(), (index, (GLfloat)v[0], (GLfloat)v[1],
(GLfloat)v[2], (GLfloat)v[3]));
}
static void GLAPIENTRY
VertexAttrib1NuivNV(GLuint index, const GLuint *v)
{
- CALL_VertexAttrib1fNV(GET_DISPATCH(), (index, UINT_TO_FLOAT(v[0])));
+ CALL_VertexAttrib1fNV(get_dispatch(), (index, UINT_TO_FLOAT(v[0])));
}
static void GLAPIENTRY
VertexAttrib1uivNV(GLuint index, const GLuint *v)
{
- CALL_VertexAttrib1fNV(GET_DISPATCH(), (index, (GLfloat)v[0]));
+ CALL_VertexAttrib1fNV(get_dispatch(), (index, (GLfloat)v[0]));
}
static void GLAPIENTRY
VertexAttrib2NuivNV(GLuint index, const GLuint *v)
{
- CALL_VertexAttrib2fNV(GET_DISPATCH(), (index, UINT_TO_FLOAT(v[0]),
+ CALL_VertexAttrib2fNV(get_dispatch(), (index, UINT_TO_FLOAT(v[0]),
UINT_TO_FLOAT(v[1])));
}
static void GLAPIENTRY
VertexAttrib2uivNV(GLuint index, const GLuint *v)
{
- CALL_VertexAttrib2fNV(GET_DISPATCH(), (index, (GLfloat)v[0],
+ CALL_VertexAttrib2fNV(get_dispatch(), (index, (GLfloat)v[0],
(GLfloat)v[1]));
}
static void GLAPIENTRY
VertexAttrib3NuivNV(GLuint index, const GLuint *v)
{
- CALL_VertexAttrib3fNV(GET_DISPATCH(), (index, UINT_TO_FLOAT(v[0]),
+ CALL_VertexAttrib3fNV(get_dispatch(), (index, UINT_TO_FLOAT(v[0]),
UINT_TO_FLOAT(v[1]),
UINT_TO_FLOAT(v[2])));
}
static void GLAPIENTRY
VertexAttrib3uivNV(GLuint index, const GLuint *v)
{
- CALL_VertexAttrib3fNV(GET_DISPATCH(), (index, (GLfloat)v[0], (GLfloat)v[1],
+ CALL_VertexAttrib3fNV(get_dispatch(), (index, (GLfloat)v[0], (GLfloat)v[1],
(GLfloat)v[2]));
}
static void GLAPIENTRY
VertexAttrib4NuivNV(GLuint index, const GLuint *v)
{
- CALL_VertexAttrib4fNV(GET_DISPATCH(), (index, UINT_TO_FLOAT(v[0]),
+ CALL_VertexAttrib4fNV(get_dispatch(), (index, UINT_TO_FLOAT(v[0]),
UINT_TO_FLOAT(v[1]),
UINT_TO_FLOAT(v[2]),
UINT_TO_FLOAT(v[3])));
static void GLAPIENTRY
VertexAttrib4uivNV(GLuint index, const GLuint *v)
{
- CALL_VertexAttrib4fNV(GET_DISPATCH(), (index, (GLfloat)v[0], (GLfloat)v[1],
+ CALL_VertexAttrib4fNV(get_dispatch(), (index, (GLfloat)v[0], (GLfloat)v[1],
(GLfloat)v[2], (GLfloat)v[3]));
}
static void GLAPIENTRY
VertexAttrib1fvNV(GLuint index, const GLfloat *v)
{
- CALL_VertexAttrib1fvNV(GET_DISPATCH(), (index, v));
+ CALL_VertexAttrib1fvNV(get_dispatch(), (index, v));
}
static void GLAPIENTRY
VertexAttrib2fvNV(GLuint index, const GLfloat *v)
{
- CALL_VertexAttrib2fvNV(GET_DISPATCH(), (index, v));
+ CALL_VertexAttrib2fvNV(get_dispatch(), (index, v));
}
static void GLAPIENTRY
VertexAttrib3fvNV(GLuint index, const GLfloat *v)
{
- CALL_VertexAttrib3fvNV(GET_DISPATCH(), (index, v));
+ CALL_VertexAttrib3fvNV(get_dispatch(), (index, v));
}
static void GLAPIENTRY
VertexAttrib4fvNV(GLuint index, const GLfloat *v)
{
- CALL_VertexAttrib4fvNV(GET_DISPATCH(), (index, v));
+ CALL_VertexAttrib4fvNV(get_dispatch(), (index, v));
}
/* GL_DOUBLE attributes */
static void GLAPIENTRY
VertexAttrib1dvNV(GLuint index, const GLdouble *v)
{
- CALL_VertexAttrib1dvNV(GET_DISPATCH(), (index, v));
+ CALL_VertexAttrib1dvNV(get_dispatch(), (index, v));
}
static void GLAPIENTRY
VertexAttrib2dvNV(GLuint index, const GLdouble *v)
{
- CALL_VertexAttrib2dvNV(GET_DISPATCH(), (index, v));
+ CALL_VertexAttrib2dvNV(get_dispatch(), (index, v));
}
static void GLAPIENTRY
VertexAttrib3dvNV(GLuint index, const GLdouble *v)
{
- CALL_VertexAttrib3dvNV(GET_DISPATCH(), (index, v));
+ CALL_VertexAttrib3dvNV(get_dispatch(), (index, v));
}
static void GLAPIENTRY
VertexAttrib4dvNV(GLuint index, const GLdouble *v)
{
- CALL_VertexAttrib4dvNV(GET_DISPATCH(), (index, v));
+ CALL_VertexAttrib4dvNV(get_dispatch(), (index, v));
}
static void GLAPIENTRY
VertexAttrib1NbvARB(GLuint index, const GLbyte *v)
{
- CALL_VertexAttrib1fARB(GET_DISPATCH(), (index, BYTE_TO_FLOAT(v[0])));
+ CALL_VertexAttrib1fARB(get_dispatch(), (index, BYTE_TO_FLOAT(v[0])));
}
static void GLAPIENTRY
VertexAttrib1bvARB(GLuint index, const GLbyte *v)
{
- CALL_VertexAttrib1fARB(GET_DISPATCH(), (index, (GLfloat)v[0]));
+ CALL_VertexAttrib1fARB(get_dispatch(), (index, (GLfloat)v[0]));
}
static void GLAPIENTRY
VertexAttrib2NbvARB(GLuint index, const GLbyte *v)
{
- CALL_VertexAttrib2fARB(GET_DISPATCH(), (index, BYTE_TO_FLOAT(v[0]), BYTE_TO_FLOAT(v[1])));
+ CALL_VertexAttrib2fARB(get_dispatch(), (index, BYTE_TO_FLOAT(v[0]), BYTE_TO_FLOAT(v[1])));
}
static void GLAPIENTRY
VertexAttrib2bvARB(GLuint index, const GLbyte *v)
{
- CALL_VertexAttrib2fARB(GET_DISPATCH(), (index, (GLfloat)v[0], (GLfloat)v[1]));
+ CALL_VertexAttrib2fARB(get_dispatch(), (index, (GLfloat)v[0], (GLfloat)v[1]));
}
static void GLAPIENTRY
VertexAttrib3NbvARB(GLuint index, const GLbyte *v)
{
- CALL_VertexAttrib3fARB(GET_DISPATCH(), (index, BYTE_TO_FLOAT(v[0]),
+ CALL_VertexAttrib3fARB(get_dispatch(), (index, BYTE_TO_FLOAT(v[0]),
BYTE_TO_FLOAT(v[1]),
BYTE_TO_FLOAT(v[2])));
}
static void GLAPIENTRY
VertexAttrib3bvARB(GLuint index, const GLbyte *v)
{
- CALL_VertexAttrib3fARB(GET_DISPATCH(), (index, (GLfloat)v[0], (GLfloat)v[1], (GLfloat)v[2]));
+ CALL_VertexAttrib3fARB(get_dispatch(), (index, (GLfloat)v[0], (GLfloat)v[1], (GLfloat)v[2]));
}
static void GLAPIENTRY
VertexAttrib4NbvARB(GLuint index, const GLbyte *v)
{
- CALL_VertexAttrib4fARB(GET_DISPATCH(), (index, BYTE_TO_FLOAT(v[0]),
+ CALL_VertexAttrib4fARB(get_dispatch(), (index, BYTE_TO_FLOAT(v[0]),
BYTE_TO_FLOAT(v[1]),
BYTE_TO_FLOAT(v[2]),
BYTE_TO_FLOAT(v[3])));
static void GLAPIENTRY
VertexAttrib4bvARB(GLuint index, const GLbyte *v)
{
- CALL_VertexAttrib4fARB(GET_DISPATCH(), (index, (GLfloat)v[0], (GLfloat)v[1], (GLfloat)v[2], (GLfloat)v[3]));
+ CALL_VertexAttrib4fARB(get_dispatch(), (index, (GLfloat)v[0], (GLfloat)v[1], (GLfloat)v[2], (GLfloat)v[3]));
}
/* GL_UNSIGNED_BYTE attributes */
static void GLAPIENTRY
VertexAttrib1NubvARB(GLuint index, const GLubyte *v)
{
- CALL_VertexAttrib1fARB(GET_DISPATCH(), (index, UBYTE_TO_FLOAT(v[0])));
+ CALL_VertexAttrib1fARB(get_dispatch(), (index, UBYTE_TO_FLOAT(v[0])));
}
static void GLAPIENTRY
VertexAttrib1ubvARB(GLuint index, const GLubyte *v)
{
- CALL_VertexAttrib1fARB(GET_DISPATCH(), (index, (GLfloat)v[0]));
+ CALL_VertexAttrib1fARB(get_dispatch(), (index, (GLfloat)v[0]));
}
static void GLAPIENTRY
VertexAttrib2NubvARB(GLuint index, const GLubyte *v)
{
- CALL_VertexAttrib2fARB(GET_DISPATCH(), (index,
+ CALL_VertexAttrib2fARB(get_dispatch(), (index,
UBYTE_TO_FLOAT(v[0]),
UBYTE_TO_FLOAT(v[1])));
}
static void GLAPIENTRY
VertexAttrib2ubvARB(GLuint index, const GLubyte *v)
{
- CALL_VertexAttrib2fARB(GET_DISPATCH(), (index,
+ CALL_VertexAttrib2fARB(get_dispatch(), (index,
(GLfloat)v[0], (GLfloat)v[1]));
}
static void GLAPIENTRY
VertexAttrib3NubvARB(GLuint index, const GLubyte *v)
{
- CALL_VertexAttrib3fARB(GET_DISPATCH(), (index,
+ CALL_VertexAttrib3fARB(get_dispatch(), (index,
UBYTE_TO_FLOAT(v[0]),
UBYTE_TO_FLOAT(v[1]),
UBYTE_TO_FLOAT(v[2])));
static void GLAPIENTRY
VertexAttrib3ubvARB(GLuint index, const GLubyte *v)
{
- CALL_VertexAttrib3fARB(GET_DISPATCH(), (index,
+ CALL_VertexAttrib3fARB(get_dispatch(), (index,
(GLfloat)v[0],
(GLfloat)v[1],
(GLfloat)v[2]));
static void GLAPIENTRY
VertexAttrib4NubvARB(GLuint index, const GLubyte *v)
{
- CALL_VertexAttrib4fARB(GET_DISPATCH(),
+ CALL_VertexAttrib4fARB(get_dispatch(),
(index,
UBYTE_TO_FLOAT(v[0]),
UBYTE_TO_FLOAT(v[1]),
static void GLAPIENTRY
VertexAttrib4ubvARB(GLuint index, const GLubyte *v)
{
- CALL_VertexAttrib4fARB(GET_DISPATCH(),
+ CALL_VertexAttrib4fARB(get_dispatch(),
(index,
(GLfloat)v[0], (GLfloat)v[1],
(GLfloat)v[2], (GLfloat)v[3]));
static void GLAPIENTRY
VertexAttrib1NsvARB(GLuint index, const GLshort *v)
{
- CALL_VertexAttrib1fARB(GET_DISPATCH(), (index, SHORT_TO_FLOAT(v[0])));
+ CALL_VertexAttrib1fARB(get_dispatch(), (index, SHORT_TO_FLOAT(v[0])));
}
static void GLAPIENTRY
VertexAttrib1svARB(GLuint index, const GLshort *v)
{
- CALL_VertexAttrib1fARB(GET_DISPATCH(), (index, (GLfloat)v[0]));
+ CALL_VertexAttrib1fARB(get_dispatch(), (index, (GLfloat)v[0]));
}
static void GLAPIENTRY
VertexAttrib2NsvARB(GLuint index, const GLshort *v)
{
- CALL_VertexAttrib2fARB(GET_DISPATCH(),
+ CALL_VertexAttrib2fARB(get_dispatch(),
(index, SHORT_TO_FLOAT(v[0]),
SHORT_TO_FLOAT(v[1])));
}
static void GLAPIENTRY
VertexAttrib2svARB(GLuint index, const GLshort *v)
{
- CALL_VertexAttrib2fARB(GET_DISPATCH(),
+ CALL_VertexAttrib2fARB(get_dispatch(),
(index, (GLfloat)v[0], (GLfloat)v[1]));
}
static void GLAPIENTRY
VertexAttrib3NsvARB(GLuint index, const GLshort *v)
{
- CALL_VertexAttrib3fARB(GET_DISPATCH(),
+ CALL_VertexAttrib3fARB(get_dispatch(),
(index,
SHORT_TO_FLOAT(v[0]),
SHORT_TO_FLOAT(v[1]),
static void GLAPIENTRY
VertexAttrib3svARB(GLuint index, const GLshort *v)
{
- CALL_VertexAttrib3fARB(GET_DISPATCH(),
+ CALL_VertexAttrib3fARB(get_dispatch(),
(index,
(GLfloat)v[0], (GLfloat)v[1], (GLfloat)v[2]));
}
static void GLAPIENTRY
VertexAttrib4NsvARB(GLuint index, const GLshort *v)
{
- CALL_VertexAttrib4fARB(GET_DISPATCH(),
+ CALL_VertexAttrib4fARB(get_dispatch(),
(index,
SHORT_TO_FLOAT(v[0]),
SHORT_TO_FLOAT(v[1]),
static void GLAPIENTRY
VertexAttrib4svARB(GLuint index, const GLshort *v)
{
- CALL_VertexAttrib4fARB(GET_DISPATCH(), (index, (GLfloat)v[0], (GLfloat)v[1],
+ CALL_VertexAttrib4fARB(get_dispatch(), (index, (GLfloat)v[0], (GLfloat)v[1],
(GLfloat)v[2], (GLfloat)v[3]));
}
static void GLAPIENTRY
VertexAttrib1NusvARB(GLuint index, const GLushort *v)
{
- CALL_VertexAttrib1fARB(GET_DISPATCH(), (index, USHORT_TO_FLOAT(v[0])));
+ CALL_VertexAttrib1fARB(get_dispatch(), (index, USHORT_TO_FLOAT(v[0])));
}
static void GLAPIENTRY
VertexAttrib1usvARB(GLuint index, const GLushort *v)
{
- CALL_VertexAttrib1fARB(GET_DISPATCH(), (index, (GLfloat)v[0]));
+ CALL_VertexAttrib1fARB(get_dispatch(), (index, (GLfloat)v[0]));
}
static void GLAPIENTRY
VertexAttrib2NusvARB(GLuint index, const GLushort *v)
{
- CALL_VertexAttrib2fARB(GET_DISPATCH(), (index, USHORT_TO_FLOAT(v[0]),
+ CALL_VertexAttrib2fARB(get_dispatch(), (index, USHORT_TO_FLOAT(v[0]),
USHORT_TO_FLOAT(v[1])));
}
static void GLAPIENTRY
VertexAttrib2usvARB(GLuint index, const GLushort *v)
{
- CALL_VertexAttrib2fARB(GET_DISPATCH(), (index, (GLfloat)v[0],
+ CALL_VertexAttrib2fARB(get_dispatch(), (index, (GLfloat)v[0],
(GLfloat)v[1]));
}
static void GLAPIENTRY
VertexAttrib3NusvARB(GLuint index, const GLushort *v)
{
- CALL_VertexAttrib3fARB(GET_DISPATCH(), (index, USHORT_TO_FLOAT(v[0]),
+ CALL_VertexAttrib3fARB(get_dispatch(), (index, USHORT_TO_FLOAT(v[0]),
USHORT_TO_FLOAT(v[1]),
USHORT_TO_FLOAT(v[2])));
}
static void GLAPIENTRY
VertexAttrib3usvARB(GLuint index, const GLushort *v)
{
- CALL_VertexAttrib3fARB(GET_DISPATCH(), (index, (GLfloat)v[0],
+ CALL_VertexAttrib3fARB(get_dispatch(), (index, (GLfloat)v[0],
(GLfloat)v[1], (GLfloat)v[2]));
}
static void GLAPIENTRY
VertexAttrib4NusvARB(GLuint index, const GLushort *v)
{
- CALL_VertexAttrib4fARB(GET_DISPATCH(), (index, USHORT_TO_FLOAT(v[0]),
+ CALL_VertexAttrib4fARB(get_dispatch(), (index, USHORT_TO_FLOAT(v[0]),
USHORT_TO_FLOAT(v[1]),
USHORT_TO_FLOAT(v[2]),
USHORT_TO_FLOAT(v[3])));
static void GLAPIENTRY
VertexAttrib4usvARB(GLuint index, const GLushort *v)
{
- CALL_VertexAttrib4fARB(GET_DISPATCH(), (index, (GLfloat)v[0], (GLfloat)v[1], (GLfloat)v[2], (GLfloat)v[3]));
+ CALL_VertexAttrib4fARB(get_dispatch(), (index, (GLfloat)v[0], (GLfloat)v[1], (GLfloat)v[2], (GLfloat)v[3]));
}
/* GL_INT attributes */
static void GLAPIENTRY
VertexAttrib1NivARB(GLuint index, const GLint *v)
{
- CALL_VertexAttrib1fARB(GET_DISPATCH(), (index, INT_TO_FLOAT(v[0])));
+ CALL_VertexAttrib1fARB(get_dispatch(), (index, INT_TO_FLOAT(v[0])));
}
static void GLAPIENTRY
VertexAttrib1ivARB(GLuint index, const GLint *v)
{
- CALL_VertexAttrib1fARB(GET_DISPATCH(), (index, (GLfloat)v[0]));
+ CALL_VertexAttrib1fARB(get_dispatch(), (index, (GLfloat)v[0]));
}
static void GLAPIENTRY
VertexAttrib2NivARB(GLuint index, const GLint *v)
{
- CALL_VertexAttrib2fARB(GET_DISPATCH(), (index, INT_TO_FLOAT(v[0]),
+ CALL_VertexAttrib2fARB(get_dispatch(), (index, INT_TO_FLOAT(v[0]),
INT_TO_FLOAT(v[1])));
}
static void GLAPIENTRY
VertexAttrib2ivARB(GLuint index, const GLint *v)
{
- CALL_VertexAttrib2fARB(GET_DISPATCH(), (index, (GLfloat)v[0],
+ CALL_VertexAttrib2fARB(get_dispatch(), (index, (GLfloat)v[0],
(GLfloat)v[1]));
}
static void GLAPIENTRY
VertexAttrib3NivARB(GLuint index, const GLint *v)
{
- CALL_VertexAttrib3fARB(GET_DISPATCH(), (index, INT_TO_FLOAT(v[0]),
+ CALL_VertexAttrib3fARB(get_dispatch(), (index, INT_TO_FLOAT(v[0]),
INT_TO_FLOAT(v[1]),
INT_TO_FLOAT(v[2])));
}
static void GLAPIENTRY
VertexAttrib3ivARB(GLuint index, const GLint *v)
{
- CALL_VertexAttrib3fARB(GET_DISPATCH(), (index, (GLfloat)v[0],
+ CALL_VertexAttrib3fARB(get_dispatch(), (index, (GLfloat)v[0],
(GLfloat)v[1], (GLfloat)v[2]));
}
static void GLAPIENTRY
VertexAttrib4NivARB(GLuint index, const GLint *v)
{
- CALL_VertexAttrib4fARB(GET_DISPATCH(), (index, INT_TO_FLOAT(v[0]),
+ CALL_VertexAttrib4fARB(get_dispatch(), (index, INT_TO_FLOAT(v[0]),
INT_TO_FLOAT(v[1]),
INT_TO_FLOAT(v[2]),
INT_TO_FLOAT(v[3])));
static void GLAPIENTRY
VertexAttrib4ivARB(GLuint index, const GLint *v)
{
- CALL_VertexAttrib4fARB(GET_DISPATCH(), (index, (GLfloat)v[0], (GLfloat)v[1],
+ CALL_VertexAttrib4fARB(get_dispatch(), (index, (GLfloat)v[0], (GLfloat)v[1],
(GLfloat)v[2], (GLfloat)v[3]));
}
static void GLAPIENTRY
VertexAttrib1NuivARB(GLuint index, const GLuint *v)
{
- CALL_VertexAttrib1fARB(GET_DISPATCH(), (index, UINT_TO_FLOAT(v[0])));
+ CALL_VertexAttrib1fARB(get_dispatch(), (index, UINT_TO_FLOAT(v[0])));
}
static void GLAPIENTRY
VertexAttrib1uivARB(GLuint index, const GLuint *v)
{
- CALL_VertexAttrib1fARB(GET_DISPATCH(), (index, (GLfloat)v[0]));
+ CALL_VertexAttrib1fARB(get_dispatch(), (index, (GLfloat)v[0]));
}
static void GLAPIENTRY
VertexAttrib2NuivARB(GLuint index, const GLuint *v)
{
- CALL_VertexAttrib2fARB(GET_DISPATCH(), (index, UINT_TO_FLOAT(v[0]),
+ CALL_VertexAttrib2fARB(get_dispatch(), (index, UINT_TO_FLOAT(v[0]),
UINT_TO_FLOAT(v[1])));
}
static void GLAPIENTRY
VertexAttrib2uivARB(GLuint index, const GLuint *v)
{
- CALL_VertexAttrib2fARB(GET_DISPATCH(), (index, (GLfloat)v[0],
+ CALL_VertexAttrib2fARB(get_dispatch(), (index, (GLfloat)v[0],
(GLfloat)v[1]));
}
static void GLAPIENTRY
VertexAttrib3NuivARB(GLuint index, const GLuint *v)
{
- CALL_VertexAttrib3fARB(GET_DISPATCH(), (index, UINT_TO_FLOAT(v[0]),
+ CALL_VertexAttrib3fARB(get_dispatch(), (index, UINT_TO_FLOAT(v[0]),
UINT_TO_FLOAT(v[1]),
UINT_TO_FLOAT(v[2])));
}
static void GLAPIENTRY
VertexAttrib3uivARB(GLuint index, const GLuint *v)
{
- CALL_VertexAttrib3fARB(GET_DISPATCH(), (index, (GLfloat)v[0],
+ CALL_VertexAttrib3fARB(get_dispatch(), (index, (GLfloat)v[0],
(GLfloat)v[1], (GLfloat)v[2]));
}
static void GLAPIENTRY
VertexAttrib4NuivARB(GLuint index, const GLuint *v)
{
- CALL_VertexAttrib4fARB(GET_DISPATCH(), (index, UINT_TO_FLOAT(v[0]),
+ CALL_VertexAttrib4fARB(get_dispatch(), (index, UINT_TO_FLOAT(v[0]),
UINT_TO_FLOAT(v[1]),
UINT_TO_FLOAT(v[2]),
UINT_TO_FLOAT(v[3])));
static void GLAPIENTRY
VertexAttrib4uivARB(GLuint index, const GLuint *v)
{
- CALL_VertexAttrib4fARB(GET_DISPATCH(), (index, (GLfloat)v[0], (GLfloat)v[1],
+ CALL_VertexAttrib4fARB(get_dispatch(), (index, (GLfloat)v[0], (GLfloat)v[1],
(GLfloat)v[2], (GLfloat)v[3]));
}
static void GLAPIENTRY
VertexAttrib1fvARB(GLuint index, const GLfloat *v)
{
- CALL_VertexAttrib1fvARB(GET_DISPATCH(), (index, v));
+ CALL_VertexAttrib1fvARB(get_dispatch(), (index, v));
}
static void GLAPIENTRY
VertexAttrib2fvARB(GLuint index, const GLfloat *v)
{
- CALL_VertexAttrib2fvARB(GET_DISPATCH(), (index, v));
+ CALL_VertexAttrib2fvARB(get_dispatch(), (index, v));
}
static void GLAPIENTRY
VertexAttrib3fvARB(GLuint index, const GLfloat *v)
{
- CALL_VertexAttrib3fvARB(GET_DISPATCH(), (index, v));
+ CALL_VertexAttrib3fvARB(get_dispatch(), (index, v));
}
static void GLAPIENTRY
VertexAttrib4fvARB(GLuint index, const GLfloat *v)
{
- CALL_VertexAttrib4fvARB(GET_DISPATCH(), (index, v));
+ CALL_VertexAttrib4fvARB(get_dispatch(), (index, v));
}
/* GL_DOUBLE attributes */
static void GLAPIENTRY
VertexAttrib1dvARB(GLuint index, const GLdouble *v)
{
- CALL_VertexAttrib1dv(GET_DISPATCH(), (index, v));
+ CALL_VertexAttrib1dv(get_dispatch(), (index, v));
}
static void GLAPIENTRY
VertexAttrib2dvARB(GLuint index, const GLdouble *v)
{
- CALL_VertexAttrib2dv(GET_DISPATCH(), (index, v));
+ CALL_VertexAttrib2dv(get_dispatch(), (index, v));
}
static void GLAPIENTRY
VertexAttrib3dvARB(GLuint index, const GLdouble *v)
{
- CALL_VertexAttrib3dv(GET_DISPATCH(), (index, v));
+ CALL_VertexAttrib3dv(get_dispatch(), (index, v));
}
static void GLAPIENTRY
VertexAttrib4dvARB(GLuint index, const GLdouble *v)
{
- CALL_VertexAttrib4dv(GET_DISPATCH(), (index, v));
+ CALL_VertexAttrib4dv(get_dispatch(), (index, v));
}
static void GLAPIENTRY
VertexAttribI1bv(GLuint index, const GLbyte *v)
{
- CALL_VertexAttribI1iEXT(GET_DISPATCH(), (index, v[0]));
+ CALL_VertexAttribI1iEXT(get_dispatch(), (index, v[0]));
}
static void GLAPIENTRY
VertexAttribI2bv(GLuint index, const GLbyte *v)
{
- CALL_VertexAttribI2iEXT(GET_DISPATCH(), (index, v[0], v[1]));
+ CALL_VertexAttribI2iEXT(get_dispatch(), (index, v[0], v[1]));
}
static void GLAPIENTRY
VertexAttribI3bv(GLuint index, const GLbyte *v)
{
- CALL_VertexAttribI3iEXT(GET_DISPATCH(), (index, v[0], v[1], v[2]));
+ CALL_VertexAttribI3iEXT(get_dispatch(), (index, v[0], v[1], v[2]));
}
static void GLAPIENTRY
VertexAttribI4bv(GLuint index, const GLbyte *v)
{
- CALL_VertexAttribI4bv(GET_DISPATCH(), (index, v));
+ CALL_VertexAttribI4bv(get_dispatch(), (index, v));
}
static void GLAPIENTRY
VertexAttribI1ubv(GLuint index, const GLubyte *v)
{
- CALL_VertexAttribI1uiEXT(GET_DISPATCH(), (index, v[0]));
+ CALL_VertexAttribI1uiEXT(get_dispatch(), (index, v[0]));
}
static void GLAPIENTRY
VertexAttribI2ubv(GLuint index, const GLubyte *v)
{
- CALL_VertexAttribI2uiEXT(GET_DISPATCH(), (index, v[0], v[1]));
+ CALL_VertexAttribI2uiEXT(get_dispatch(), (index, v[0], v[1]));
}
static void GLAPIENTRY
VertexAttribI3ubv(GLuint index, const GLubyte *v)
{
- CALL_VertexAttribI3uiEXT(GET_DISPATCH(), (index, v[0], v[1], v[2]));
+ CALL_VertexAttribI3uiEXT(get_dispatch(), (index, v[0], v[1], v[2]));
}
static void GLAPIENTRY
VertexAttribI4ubv(GLuint index, const GLubyte *v)
{
- CALL_VertexAttribI4ubv(GET_DISPATCH(), (index, v));
+ CALL_VertexAttribI4ubv(get_dispatch(), (index, v));
}
static void GLAPIENTRY
VertexAttribI1sv(GLuint index, const GLshort *v)
{
- CALL_VertexAttribI1iEXT(GET_DISPATCH(), (index, v[0]));
+ CALL_VertexAttribI1iEXT(get_dispatch(), (index, v[0]));
}
static void GLAPIENTRY
VertexAttribI2sv(GLuint index, const GLshort *v)
{
- CALL_VertexAttribI2iEXT(GET_DISPATCH(), (index, v[0], v[1]));
+ CALL_VertexAttribI2iEXT(get_dispatch(), (index, v[0], v[1]));
}
static void GLAPIENTRY
VertexAttribI3sv(GLuint index, const GLshort *v)
{
- CALL_VertexAttribI3iEXT(GET_DISPATCH(), (index, v[0], v[1], v[2]));
+ CALL_VertexAttribI3iEXT(get_dispatch(), (index, v[0], v[1], v[2]));
}
static void GLAPIENTRY
VertexAttribI4sv(GLuint index, const GLshort *v)
{
- CALL_VertexAttribI4sv(GET_DISPATCH(), (index, v));
+ CALL_VertexAttribI4sv(get_dispatch(), (index, v));
}
static void GLAPIENTRY
VertexAttribI1usv(GLuint index, const GLushort *v)
{
- CALL_VertexAttribI1uiEXT(GET_DISPATCH(), (index, v[0]));
+ CALL_VertexAttribI1uiEXT(get_dispatch(), (index, v[0]));
}
static void GLAPIENTRY
VertexAttribI2usv(GLuint index, const GLushort *v)
{
- CALL_VertexAttribI2uiEXT(GET_DISPATCH(), (index, v[0], v[1]));
+ CALL_VertexAttribI2uiEXT(get_dispatch(), (index, v[0], v[1]));
}
static void GLAPIENTRY
VertexAttribI3usv(GLuint index, const GLushort *v)
{
- CALL_VertexAttribI3uiEXT(GET_DISPATCH(), (index, v[0], v[1], v[2]));
+ CALL_VertexAttribI3uiEXT(get_dispatch(), (index, v[0], v[1], v[2]));
}
static void GLAPIENTRY
VertexAttribI4usv(GLuint index, const GLushort *v)
{
- CALL_VertexAttribI4usv(GET_DISPATCH(), (index, v));
+ CALL_VertexAttribI4usv(get_dispatch(), (index, v));
}
static void GLAPIENTRY
VertexAttribI1iv(GLuint index, const GLint *v)
{
- CALL_VertexAttribI1iEXT(GET_DISPATCH(), (index, v[0]));
+ CALL_VertexAttribI1iEXT(get_dispatch(), (index, v[0]));
}
static void GLAPIENTRY
VertexAttribI2iv(GLuint index, const GLint *v)
{
- CALL_VertexAttribI2iEXT(GET_DISPATCH(), (index, v[0], v[1]));
+ CALL_VertexAttribI2iEXT(get_dispatch(), (index, v[0], v[1]));
}
static void GLAPIENTRY
VertexAttribI3iv(GLuint index, const GLint *v)
{
- CALL_VertexAttribI3iEXT(GET_DISPATCH(), (index, v[0], v[1], v[2]));
+ CALL_VertexAttribI3iEXT(get_dispatch(), (index, v[0], v[1], v[2]));
}
static void GLAPIENTRY
VertexAttribI4iv(GLuint index, const GLint *v)
{
- CALL_VertexAttribI4ivEXT(GET_DISPATCH(), (index, v));
+ CALL_VertexAttribI4ivEXT(get_dispatch(), (index, v));
}
static void GLAPIENTRY
VertexAttribI1uiv(GLuint index, const GLuint *v)
{
- CALL_VertexAttribI1uiEXT(GET_DISPATCH(), (index, v[0]));
+ CALL_VertexAttribI1uiEXT(get_dispatch(), (index, v[0]));
}
static void GLAPIENTRY
VertexAttribI2uiv(GLuint index, const GLuint *v)
{
- CALL_VertexAttribI2uiEXT(GET_DISPATCH(), (index, v[0], v[1]));
+ CALL_VertexAttribI2uiEXT(get_dispatch(), (index, v[0], v[1]));
}
static void GLAPIENTRY
VertexAttribI3uiv(GLuint index, const GLuint *v)
{
- CALL_VertexAttribI3uiEXT(GET_DISPATCH(), (index, v[0], v[1], v[2]));
+ CALL_VertexAttribI3uiEXT(get_dispatch(), (index, v[0], v[1], v[2]));
}
static void GLAPIENTRY
VertexAttribI4uiv(GLuint index, const GLuint *v)
{
- CALL_VertexAttribI4uivEXT(GET_DISPATCH(), (index, v));
+ CALL_VertexAttribI4uivEXT(get_dispatch(), (index, v));
}
/* GL_DOUBLE unconverted attributes */
static void GLAPIENTRY
VertexAttribL1dv(GLuint index, const GLdouble *v)
{
- CALL_VertexAttribL1dv(GET_DISPATCH(), (index, v));
+ CALL_VertexAttribL1dv(get_dispatch(), (index, v));
}
static void GLAPIENTRY
VertexAttribL2dv(GLuint index, const GLdouble *v)
{
- CALL_VertexAttribL2dv(GET_DISPATCH(), (index, v));
+ CALL_VertexAttribL2dv(get_dispatch(), (index, v));
}
static void GLAPIENTRY
VertexAttribL3dv(GLuint index, const GLdouble *v)
{
- CALL_VertexAttribL3dv(GET_DISPATCH(), (index, v));
+ CALL_VertexAttribL3dv(get_dispatch(), (index, v));
}
static void GLAPIENTRY
VertexAttribL4dv(GLuint index, const GLdouble *v)
{
- CALL_VertexAttribL4dv(GET_DISPATCH(), (index, v));
+ CALL_VertexAttribL4dv(get_dispatch(), (index, v));
}
/*
* then we call PrimitiveRestartNV and return.
*/
if (ctx->Array.PrimitiveRestart && (elt == ctx->Array.RestartIndex)) {
- CALL_PrimitiveRestartNV(GET_DISPATCH(), ());
+ CALL_PrimitiveRestartNV(ctx->CurrentServerDispatch, ());
return;
}
#include "main/dispatch.h"
#include "main/context.h"
+static struct _glapi_table *
+get_dispatch(void)
+{
+ GET_CURRENT_CONTEXT(ctx);
+ return ctx->CurrentServerDispatch;
+}
+
+
/* KW: A set of functions to convert unusual Color/Normal/Vertex/etc
* calls to a smaller set of driver-provided formats. Currently just
* go back to dispatch to find these (eg. call glNormal3f directly),
* listed in dd.h. The easiest way for a driver to do this is to
* install the supplied software t&l module.
*/
-#define COLORF(r,g,b,a) CALL_Color4f(GET_DISPATCH(), (r,g,b,a))
-#define VERTEX2(x,y) CALL_Vertex2f(GET_DISPATCH(), (x,y))
-#define VERTEX3(x,y,z) CALL_Vertex3f(GET_DISPATCH(), (x,y,z))
-#define VERTEX4(x,y,z,w) CALL_Vertex4f(GET_DISPATCH(), (x,y,z,w))
-#define NORMAL(x,y,z) CALL_Normal3f(GET_DISPATCH(), (x,y,z))
-#define TEXCOORD1(s) CALL_TexCoord1f(GET_DISPATCH(), (s))
-#define TEXCOORD2(s,t) CALL_TexCoord2f(GET_DISPATCH(), (s,t))
-#define TEXCOORD3(s,t,u) CALL_TexCoord3f(GET_DISPATCH(), (s,t,u))
-#define TEXCOORD4(s,t,u,v) CALL_TexCoord4f(GET_DISPATCH(), (s,t,u,v))
-#define INDEX(c) CALL_Indexf(GET_DISPATCH(), (c))
-#define MULTI_TEXCOORD1(z,s) CALL_MultiTexCoord1fARB(GET_DISPATCH(), (z,s))
-#define MULTI_TEXCOORD2(z,s,t) CALL_MultiTexCoord2fARB(GET_DISPATCH(), (z,s,t))
-#define MULTI_TEXCOORD3(z,s,t,u) CALL_MultiTexCoord3fARB(GET_DISPATCH(), (z,s,t,u))
-#define MULTI_TEXCOORD4(z,s,t,u,v) CALL_MultiTexCoord4fARB(GET_DISPATCH(), (z,s,t,u,v))
-#define EVALCOORD1(x) CALL_EvalCoord1f(GET_DISPATCH(), (x))
-#define EVALCOORD2(x,y) CALL_EvalCoord2f(GET_DISPATCH(), (x,y))
-#define MATERIALFV(a,b,c) CALL_Materialfv(GET_DISPATCH(), (a,b,c))
-#define RECTF(a,b,c,d) CALL_Rectf(GET_DISPATCH(), (a,b,c,d))
-
-#define FOGCOORDF(x) CALL_FogCoordfEXT(GET_DISPATCH(), (x))
-#define SECONDARYCOLORF(a,b,c) CALL_SecondaryColor3fEXT(GET_DISPATCH(), (a,b,c))
-
-#define ATTRIB1NV(index,x) CALL_VertexAttrib1fNV(GET_DISPATCH(), (index,x))
-#define ATTRIB2NV(index,x,y) CALL_VertexAttrib2fNV(GET_DISPATCH(), (index,x,y))
-#define ATTRIB3NV(index,x,y,z) CALL_VertexAttrib3fNV(GET_DISPATCH(), (index,x,y,z))
-#define ATTRIB4NV(index,x,y,z,w) CALL_VertexAttrib4fNV(GET_DISPATCH(), (index,x,y,z,w))
-
-#define ATTRIB1ARB(index,x) CALL_VertexAttrib1fARB(GET_DISPATCH(), (index,x))
-#define ATTRIB2ARB(index,x,y) CALL_VertexAttrib2fARB(GET_DISPATCH(), (index,x,y))
-#define ATTRIB3ARB(index,x,y,z) CALL_VertexAttrib3fARB(GET_DISPATCH(), (index,x,y,z))
-#define ATTRIB4ARB(index,x,y,z,w) CALL_VertexAttrib4fARB(GET_DISPATCH(), (index,x,y,z,w))
-
-#define ATTRIBI_1I(index,x) CALL_VertexAttribI1iEXT(GET_DISPATCH(), (index,x))
-#define ATTRIBI_1UI(index,x) CALL_VertexAttribI1uiEXT(GET_DISPATCH(), (index,x))
-#define ATTRIBI_4I(index,x,y,z,w) CALL_VertexAttribI4iEXT(GET_DISPATCH(), (index,x,y,z,w))
-
-#define ATTRIBI_4UI(index,x,y,z,w) CALL_VertexAttribI4uiEXT(GET_DISPATCH(), (index,x,y,z,w))
+#define COLORF(r,g,b,a) CALL_Color4f(get_dispatch(), (r,g,b,a))
+#define VERTEX2(x,y) CALL_Vertex2f(get_dispatch(), (x,y))
+#define VERTEX3(x,y,z) CALL_Vertex3f(get_dispatch(), (x,y,z))
+#define VERTEX4(x,y,z,w) CALL_Vertex4f(get_dispatch(), (x,y,z,w))
+#define NORMAL(x,y,z) CALL_Normal3f(get_dispatch(), (x,y,z))
+#define TEXCOORD1(s) CALL_TexCoord1f(get_dispatch(), (s))
+#define TEXCOORD2(s,t) CALL_TexCoord2f(get_dispatch(), (s,t))
+#define TEXCOORD3(s,t,u) CALL_TexCoord3f(get_dispatch(), (s,t,u))
+#define TEXCOORD4(s,t,u,v) CALL_TexCoord4f(get_dispatch(), (s,t,u,v))
+#define INDEX(c) CALL_Indexf(get_dispatch(), (c))
+#define MULTI_TEXCOORD1(z,s) CALL_MultiTexCoord1fARB(get_dispatch(), (z,s))
+#define MULTI_TEXCOORD2(z,s,t) CALL_MultiTexCoord2fARB(get_dispatch(), (z,s,t))
+#define MULTI_TEXCOORD3(z,s,t,u) CALL_MultiTexCoord3fARB(get_dispatch(), (z,s,t,u))
+#define MULTI_TEXCOORD4(z,s,t,u,v) CALL_MultiTexCoord4fARB(get_dispatch(), (z,s,t,u,v))
+#define EVALCOORD1(x) CALL_EvalCoord1f(get_dispatch(), (x))
+#define EVALCOORD2(x,y) CALL_EvalCoord2f(get_dispatch(), (x,y))
+#define MATERIALFV(a,b,c) CALL_Materialfv(get_dispatch(), (a,b,c))
+#define RECTF(a,b,c,d) CALL_Rectf(get_dispatch(), (a,b,c,d))
+
+#define FOGCOORDF(x) CALL_FogCoordfEXT(get_dispatch(), (x))
+#define SECONDARYCOLORF(a,b,c) CALL_SecondaryColor3fEXT(get_dispatch(), (a,b,c))
+
+#define ATTRIB1NV(index,x) CALL_VertexAttrib1fNV(get_dispatch(), (index,x))
+#define ATTRIB2NV(index,x,y) CALL_VertexAttrib2fNV(get_dispatch(), (index,x,y))
+#define ATTRIB3NV(index,x,y,z) CALL_VertexAttrib3fNV(get_dispatch(), (index,x,y,z))
+#define ATTRIB4NV(index,x,y,z,w) CALL_VertexAttrib4fNV(get_dispatch(), (index,x,y,z,w))
+
+#define ATTRIB1ARB(index,x) CALL_VertexAttrib1fARB(get_dispatch(), (index,x))
+#define ATTRIB2ARB(index,x,y) CALL_VertexAttrib2fARB(get_dispatch(), (index,x,y))
+#define ATTRIB3ARB(index,x,y,z) CALL_VertexAttrib3fARB(get_dispatch(), (index,x,y,z))
+#define ATTRIB4ARB(index,x,y,z,w) CALL_VertexAttrib4fARB(get_dispatch(), (index,x,y,z,w))
+
+#define ATTRIBI_1I(index,x) CALL_VertexAttribI1iEXT(get_dispatch(), (index,x))
+#define ATTRIBI_1UI(index,x) CALL_VertexAttribI1uiEXT(get_dispatch(), (index,x))
+#define ATTRIBI_4I(index,x,y,z,w) CALL_VertexAttribI4iEXT(get_dispatch(), (index,x,y,z,w))
+
+#define ATTRIBI_4UI(index,x,y,z,w) CALL_VertexAttribI4uiEXT(get_dispatch(), (index,x,y,z,w))
void GLAPIENTRY
_mesa_Color3b( GLbyte red, GLbyte green, GLbyte blue )
void GLAPIENTRY
_mesa_EdgeFlagv(const GLboolean *flag)
{
- CALL_EdgeFlag(GET_DISPATCH(), (*flag));
+ CALL_EdgeFlag(get_dispatch(), (*flag));
}