summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/vtxfmt.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2013-01-16 15:20:45 -0800
committerEric Anholt <eric@anholt.net>2013-01-21 21:26:47 -0800
commitc572251417ef20d1d560b849931321a42b1be578 (patch)
treeeda6535447a1b48532e286c8dc1a74dba935858d /src/mesa/main/vtxfmt.c
parent0aaf0445bac453db474cedf27f1d9f45e4acde4d (diff)
downloadexternal_mesa3d-c572251417ef20d1d560b849931321a42b1be578.zip
external_mesa3d-c572251417ef20d1d560b849931321a42b1be578.tar.gz
external_mesa3d-c572251417ef20d1d560b849931321a42b1be578.tar.bz2
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 <brianp@vmware.com> (v1) Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> (v1)
Diffstat (limited to 'src/mesa/main/vtxfmt.c')
-rw-r--r--src/mesa/main/vtxfmt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/main/vtxfmt.c b/src/mesa/main/vtxfmt.c
index 6d687de..347d07d 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 );
}