[Mesa-dev] [PATCH v2 09/12] x11: compute version and then call _mesa_initialize_exec_table

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


This change forces the context version to be computed before
initilizing the exec dispatch tables.

In order to compute the version, we must first initialize
the context extensions constants.

Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
---
 src/mesa/drivers/x11/xm_api.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/mesa/drivers/x11/xm_api.c b/src/mesa/drivers/x11/xm_api.c
index 43a97f9..c75199c 100644
--- a/src/mesa/drivers/x11/xm_api.c
+++ b/src/mesa/drivers/x11/xm_api.c
@@ -958,6 +958,11 @@ XMesaContext XMesaCreateContext( XMesaVisual v, XMesaContext share_list )
 
    _mesa_meta_init(mesaCtx);
 
+   _mesa_compute_version(ctx);
+
+    /* Exec table initialization requires the version to be computed */
+   _mesa_initialize_exec_table(ctx);
+
    return c;
 }
 
-- 
1.7.10.4



More information about the mesa-dev mailing list