mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 17:48:10 +02:00
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.
This commit is contained in:
parent
4f88550ba0
commit
1d33e940d2
1 changed files with 4 additions and 2 deletions
|
|
@ -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 );
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue