diff options
author | Jordan Justen <[email protected]> | 2012-11-16 13:40:59 -0800 |
---|---|---|
committer | Jordan Justen <[email protected]> | 2012-12-16 15:30:28 -0800 |
commit | 1358f3a905448f6fb546aba951e317f743a83c76 (patch) | |
tree | b51cb085d33927a1a46558f3d9b725fd7f06106a /src/mapi/glapi/gen/gl_genexec.py | |
parent | 075f8722ab78df32878e9b6b721a1263cea53b27 (diff) |
mesa: assert if driver did not compute the version
Make sure drivers initialize the version before:
* _mesa_initialize_exec_table is called
* _mesa_initialize_exec_table_vbo is called
* A context is made current
Signed-off-by: Jordan Justen <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mapi/glapi/gen/gl_genexec.py')
-rw-r--r-- | src/mapi/glapi/gen/gl_genexec.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mapi/glapi/gen/gl_genexec.py b/src/mapi/glapi/gen/gl_genexec.py index 7952ace280f..da9ae716a54 100644 --- a/src/mapi/glapi/gen/gl_genexec.py +++ b/src/mapi/glapi/gen/gl_genexec.py @@ -127,6 +127,7 @@ _mesa_initialize_exec_table(struct gl_context *ctx) exec = ctx->Exec; assert(exec != NULL); + assert(ctx->Version > 0); """ |