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 <jordan.l.justen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
Jordan Justen
2012-11-16 13:40:59 -08:00
parent 075f8722ab
commit 1358f3a905
3 changed files with 4 additions and 1 deletions

View File

@@ -127,6 +127,7 @@ _mesa_initialize_exec_table(struct gl_context *ctx)
exec = ctx->Exec;
assert(exec != NULL);
assert(ctx->Version > 0);
"""