mesa: remove _MESA_INIT_ARRAYELT_VTXFMT() macro

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
This commit is contained in:
Brian Paul 2013-05-01 19:15:32 -06:00
parent 95188fd10f
commit 43b3d3bc25
5 changed files with 4 additions and 8 deletions

View file

@ -31,10 +31,6 @@
#include "main/mtypes.h"
#define _MESA_INIT_ARRAYELT_VTXFMT(vfmt, impl) \
do { \
(vfmt)->ArrayElement = impl ## ArrayElement; \
} while (0)
extern GLboolean _ae_create_context( struct gl_context *ctx );
extern void _ae_destroy_context( struct gl_context *ctx );

View file

@ -9554,7 +9554,7 @@ mesa_print_display_list(GLuint list)
static void
save_vtxfmt_init(GLvertexformat * vfmt)
{
_MESA_INIT_ARRAYELT_VTXFMT(vfmt, _ae_);
vfmt->ArrayElement = _ae_ArrayElement;
vfmt->Begin = save_Begin;

View file

@ -910,7 +910,7 @@ static void vbo_exec_vtxfmt_init( struct vbo_exec_context *exec )
struct gl_context *ctx = exec->ctx;
GLvertexformat *vfmt = &exec->vtxfmt;
_MESA_INIT_ARRAYELT_VTXFMT(vfmt, _ae_);
vfmt->ArrayElement = _ae_ArrayElement;
vfmt->Begin = vbo_exec_Begin;
vfmt->End = vbo_exec_End;

View file

@ -422,7 +422,7 @@ _mesa_noop_EvalMesh2(GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2)
void
_mesa_noop_vtxfmt_init(GLvertexformat * vfmt)
{
_MESA_INIT_ARRAYELT_VTXFMT(vfmt, _ae_);
vfmt->ArrayElement = _ae_ArrayElement;
vfmt->Begin = _mesa_noop_Begin;

View file

@ -1394,7 +1394,7 @@ _save_vtxfmt_init(struct gl_context *ctx)
struct vbo_save_context *save = &vbo_context(ctx)->save;
GLvertexformat *vfmt = &save->vtxfmt;
_MESA_INIT_ARRAYELT_VTXFMT(vfmt, _ae_);
vfmt->ArrayElement = _ae_ArrayElement;
vfmt->Color3f = _save_Color3f;
vfmt->Color3fv = _save_Color3fv;