[Mesa-dev] [PATCH v2 10/12] mesa dispatch_sanity: call _mesa_initialize_exec_table

Jordan Justen jordan.l.justen at intel.com
Sun Nov 18 23:49:36 PST 2012


In a future patch _mesa_initialize_context will no longer set up
the exec dispatch tables. Therefore we must call
_mesa_initialize_exec_table to initialize the exec dispatch
tables.

Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
---
 src/mesa/main/tests/dispatch_sanity.cpp |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/mesa/main/tests/dispatch_sanity.cpp b/src/mesa/main/tests/dispatch_sanity.cpp
index 56f0dfb..7ef398c 100644
--- a/src/mesa/main/tests/dispatch_sanity.cpp
+++ b/src/mesa/main/tests/dispatch_sanity.cpp
@@ -103,12 +103,13 @@ DispatchSanity_test::SetUp()
 void
 DispatchSanity_test::SetUpCtx(gl_api api, unsigned int version)
 {
-   ctx.Version = version;
    _mesa_initialize_context(&ctx,
                             api,
                             &visual,
                             NULL, // share_list
                             &driver_functions);
+   ctx.Version = version;
+   _mesa_initialize_exec_table(&ctx);
    _vbo_CreateContext(&ctx);
 }
 
-- 
1.7.10.4



More information about the mesa-dev mailing list