summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/x11/xm_api.c
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-10-31 12:12:37 -0600
committerBrian <[email protected]>2007-10-31 12:12:37 -0600
commit4990695f1b197b270a4e3d98dd6bcd2bb4e89b4a (patch)
tree6fc713ff886cdb8ffe0e56c85d0a8e8cc0045be5 /src/mesa/drivers/x11/xm_api.c
parentcf3f601682297d94482a1448eff3f36b26514ab1 (diff)
fix some breakage from lifting vbo/tnl code
Diffstat (limited to 'src/mesa/drivers/x11/xm_api.c')
-rw-r--r--src/mesa/drivers/x11/xm_api.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/mesa/drivers/x11/xm_api.c b/src/mesa/drivers/x11/xm_api.c
index ffe8361d268..08c98eab486 100644
--- a/src/mesa/drivers/x11/xm_api.c
+++ b/src/mesa/drivers/x11/xm_api.c
@@ -1551,6 +1551,9 @@ XMesaContext XMesaCreateContext( XMesaVisual v, XMesaContext share_list )
xmesa_init_driver_functions(v, &functions);
st_init_driver_functions(&functions);
+ /* override st's function */
+ functions.UpdateState = xmesa_update_state;
+
/*
functions.NewRenderbuffer = xmesa_new_renderbuffer;
*/
@@ -1594,12 +1597,13 @@ XMesaContext XMesaCreateContext( XMesaVisual v, XMesaContext share_list )
/* Initialize the software rasterizer and helper modules.
*/
- if (!_swrast_CreateContext( mesaCtx ) ||
+ if (!_swrast_CreateContext( mesaCtx )
#if 0
- !_vbo_CreateContext( mesaCtx ) ||
+ || !_vbo_CreateContext( mesaCtx ) ||
!_tnl_CreateContext( mesaCtx ) ||
+ !_swsetup_CreateContext( mesaCtx )
#endif
- !_swsetup_CreateContext( mesaCtx )) {
+ ) {
_mesa_free_context_data(&c->mesa);
_mesa_free(c);
return NULL;
@@ -1613,12 +1617,14 @@ XMesaContext XMesaCreateContext( XMesaVisual v, XMesaContext share_list )
/* swrast setup */
xmesa_register_swrast_functions( mesaCtx );
- _swsetup_Wakeup(mesaCtx);
st_create_context( mesaCtx,
xmesa_create_softpipe( c ) );
+ _swsetup_CreateContext( mesaCtx );
+ _swsetup_Wakeup(mesaCtx);
+
/* override these functions, as if the xlib driver were derived from
* the softpipe driver.
*/