mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 13:10:10 +01:00
mesa: remove _MESA_INIT_ARRAYELT_VTXFMT() macro
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
This commit is contained in:
parent
95188fd10f
commit
43b3d3bc25
5 changed files with 4 additions and 8 deletions
|
|
@ -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 );
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue