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

Jordan Justen jordan.l.justen at intel.com
Sun Nov 18 23:49:34 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/windows/gdi/wmesa.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/mesa/drivers/windows/gdi/wmesa.c b/src/mesa/drivers/windows/gdi/wmesa.c
index 5728d3a..3ec1835 100644
--- a/src/mesa/drivers/windows/gdi/wmesa.c
+++ b/src/mesa/drivers/windows/gdi/wmesa.c
@@ -637,6 +637,11 @@ WMesaContext WMesaCreateContext(HDC hDC,
     _swsetup_Wakeup(ctx);
     TNL_CONTEXT(ctx)->Driver.RunPipeline = _tnl_run_pipeline;
 
+    _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