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/osmesa | |
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/osmesa')
-rw-r--r-- | src/mesa/drivers/osmesa/osmesa.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mesa/drivers/osmesa/osmesa.c b/src/mesa/drivers/osmesa/osmesa.c index c206d643509..95756d5d574 100644 --- a/src/mesa/drivers/osmesa/osmesa.c +++ b/src/mesa/drivers/osmesa/osmesa.c @@ -35,6 +35,7 @@ #include "main/glheader.h" #include "GL/osmesa.h" +#include "main/api_exec.h" #include "main/context.h" #include "main/extensions.h" #include "main/formats.h" @@ -43,6 +44,8 @@ #include "main/macros.h" #include "main/mtypes.h" #include "main/renderbuffer.h" +#include "main/version.h" +#include "main/vtxfmt.h" #include "swrast/swrast.h" #include "swrast_setup/swrast_setup.h" #include "swrast/s_context.h" @@ -787,6 +790,12 @@ OSMesaCreateContextExt( GLenum format, GLint depthBits, GLint stencilBits, swrast->choose_line = osmesa_choose_line; swrast->choose_triangle = osmesa_choose_triangle; } + + _mesa_compute_version(ctx); + + /* Exec table initialization requires the version to be computed */ + _mesa_initialize_exec_table(ctx); + _mesa_initialize_vbo_vtxfmt(ctx); } return osmesa; } |