aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/context.c
diff options
context:
space:
mode:
authorJordan Justen <[email protected]>2012-11-16 13:40:59 -0800
committerJordan Justen <[email protected]>2012-12-16 15:30:28 -0800
commit1358f3a905448f6fb546aba951e317f743a83c76 (patch)
treeb51cb085d33927a1a46558f3d9b725fd7f06106a /src/mesa/main/context.c
parent075f8722ab78df32878e9b6b721a1263cea53b27 (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/mesa/main/context.c')
-rw-r--r--src/mesa/main/context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index ce4188fe2a3..fc2db127161 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -1461,7 +1461,7 @@ _mesa_make_current( struct gl_context *newCtx,
}
if (newCtx->FirstTimeCurrent) {
- _mesa_compute_version(newCtx);
+ assert(newCtx->Version > 0);
newCtx->Extensions.String = _mesa_make_extension_string(newCtx);