summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-11-06 13:39:02 -0700
committerBrian <brian.paul@tungstengraphics.com>2007-11-06 13:39:36 -0700
commit2e784848e68c0c5252631e6f2a6b021fe008f53a (patch)
treeed15d2a0c6f12f1882f9a6072b34c66d2d9e4424 /src/mesa
parent26eb608a352ec017b534579e1c81c2d1fedf3d1b (diff)
Call xmesa_init_driver_functions() to install xmesa_viewport() function.
Fixes failed assertion in glxgears.
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/pipe/xlib/xm_api.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mesa/pipe/xlib/xm_api.c b/src/mesa/pipe/xlib/xm_api.c
index ae96a866d7..4140bf23d0 100644
--- a/src/mesa/pipe/xlib/xm_api.c
+++ b/src/mesa/pipe/xlib/xm_api.c
@@ -1427,8 +1427,7 @@ xmesa_viewport(GLcontext *ctx, GLint x, GLint y, GLsizei w, GLsizei h)
* we implement in this driver.
*/
static void
-xmesa_init_driver_functions( XMesaVisual xmvisual,
- struct dd_function_table *driver )
+xmesa_init_driver_functions(struct dd_function_table *driver)
{
driver->Flush = finish_or_flush;
driver->Finish = finish_or_flush;
@@ -1451,8 +1450,6 @@ XMesaContext XMesaCreateContext( XMesaVisual v, XMesaContext share_list )
XMesaContext c;
GLcontext *mesaCtx;
- (void) xmesa_init_driver_functions;
-
if (firstTime) {
_glthread_INIT_MUTEX(_xmesa_lock);
firstTime = GL_FALSE;
@@ -1485,6 +1482,8 @@ XMesaContext XMesaCreateContext( XMesaVisual v, XMesaContext share_list )
mesaCtx->Const.CheckArrayBounds = GL_TRUE;
#endif
+ xmesa_init_driver_functions(&mesaCtx->Driver);
+
/* finish up xmesa context initializations */
c->swapbytes = CHECK_BYTE_ORDER(v) ? GL_FALSE : GL_TRUE;
c->xm_visual = v;