diff options
author | Jordan Justen <[email protected]> | 2012-11-16 10:30:19 -0800 |
---|---|---|
committer | Jordan Justen <[email protected]> | 2012-12-16 15:30:27 -0800 |
commit | 4bea4cb9fd55cdb267003a6e6e16f7e903e00940 (patch) | |
tree | 0d5005a91f6b578a9e4891a662a177a9ac0f4707 /src/mesa/drivers/x11/xm_api.c | |
parent | 0924f4e90c47d9e4d7255cd1375c651523c9b1c5 (diff) |
drivers: compute version and then initialize exec table
This change forces the context version to be computed before
initilizing the exec dispatch tables.
Signed-off-by: Jordan Justen <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/x11/xm_api.c')
-rw-r--r-- | src/mesa/drivers/x11/xm_api.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/drivers/x11/xm_api.c b/src/mesa/drivers/x11/xm_api.c index a466943a860..0a005f893c5 100644 --- a/src/mesa/drivers/x11/xm_api.c +++ b/src/mesa/drivers/x11/xm_api.c @@ -71,6 +71,7 @@ #include "main/macros.h" #include "main/renderbuffer.h" #include "main/teximage.h" +#include "main/vtxfmt.h" #include "glapi/glthread.h" #include "swrast/swrast.h" #include "swrast/s_renderbuffer.h" @@ -958,6 +959,12 @@ XMesaContext XMesaCreateContext( XMesaVisual v, XMesaContext share_list ) _mesa_meta_init(mesaCtx); + _mesa_compute_version(ctx); + + /* Exec table initialization requires the version to be computed */ + _mesa_initialize_exec_table(ctx); + _mesa_initialize_vbo_vtxfmt(ctx); + return c; } |