From c572251417ef20d1d560b849931321a42b1be578 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 16 Jan 2013 15:20:45 -0800 Subject: mesa: Install a minimal dispatch table during glBegin()/glEnd(). This is a step toward getting rid of ASSERT_OUTSIDE_BEGIN_END() in Mesa. v2: Finish create_beginend_table() comment, move loopback API init into it, and add a const flag. (suggestions by Brian) Reviewed-by: Brian Paul (v1) Reviewed-by: Ian Romanick (v1) --- src/mesa/main/vtxfmt.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/mesa/main/vtxfmt.c') diff --git a/src/mesa/main/vtxfmt.c b/src/mesa/main/vtxfmt.c index 6d687de606b..347d07d5727 100644 --- a/src/mesa/main/vtxfmt.c +++ b/src/mesa/main/vtxfmt.c @@ -252,6 +252,8 @@ void _mesa_install_exec_vtxfmt(struct gl_context *ctx, const GLvertexformat *vfmt) { install_vtxfmt( ctx, ctx->Exec, vfmt ); + if (ctx->BeginEnd) + install_vtxfmt( ctx, ctx->BeginEnd, vfmt ); } -- cgit v1.2.3