summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKristian Høgsberg <[email protected]>2010-10-14 14:57:47 -0400
committerKristian Høgsberg <[email protected]>2010-10-14 15:00:22 -0400
commit1d33e940d2050f3d9180019f6ffd57f6fc295507 (patch)
treea5fe3d2028935b8565b03cda1bfb835d0d799969 /src
parent4f88550ba0e1ad07e39903f268975921c0101e85 (diff)
Only install vtxfmt tables for OpenGL
GLES1 and GLES2 install their own exec pointers and don't need the Save table. Also, the SET_* macros use different indices for the different APIs so the offsets used in vtxfmt.c are actually wrong for the ES APIs.
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/vtxfmt.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mesa/main/vtxfmt.c b/src/mesa/main/vtxfmt.c
index 887c7d9ac4d..13b1aa9e50b 100644
--- a/src/mesa/main/vtxfmt.c
+++ b/src/mesa/main/vtxfmt.c
@@ -127,13 +127,15 @@ install_vtxfmt( struct _glapi_table *tab, const GLvertexformat *vfmt )
void _mesa_install_exec_vtxfmt( struct gl_context *ctx, const GLvertexformat *vfmt )
{
- install_vtxfmt( ctx->Exec, vfmt );
+ if (ctx->API == API_OPENGL)
+ install_vtxfmt( ctx->Exec, vfmt );
}
void _mesa_install_save_vtxfmt( struct gl_context *ctx, const GLvertexformat *vfmt )
{
- install_vtxfmt( ctx->Save, vfmt );
+ if (ctx->API == API_OPENGL)
+ install_vtxfmt( ctx->Save, vfmt );
}