From: Keith Whitwell Date: Thu, 8 Jan 2009 15:40:58 +0000 (+0000) Subject: xlib: remove XMesaMakeCurrent, use XMesaMakeCurrent2 always X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e83e2c47928b58dc678d008d499ae92666807c5b;p=mesa.git xlib: remove XMesaMakeCurrent, use XMesaMakeCurrent2 always --- diff --git a/src/gallium/state_trackers/xlib/fakeglx.c b/src/gallium/state_trackers/xlib/fakeglx.c index 4dc45adcb51..00cefe799d8 100644 --- a/src/gallium/state_trackers/xlib/fakeglx.c +++ b/src/gallium/state_trackers/xlib/fakeglx.c @@ -1534,7 +1534,7 @@ Fake_glXMakeContextCurrent( Display *dpy, GLXDrawable draw, } else if (!ctx && !draw && !read) { /* release current context w/out assigning new one. */ - XMesaMakeCurrent( NULL, NULL ); + XMesaMakeCurrent2( NULL, NULL, NULL ); MakeCurrent_PrevContext = 0; MakeCurrent_PrevDrawable = 0; MakeCurrent_PrevReadable = 0; diff --git a/src/gallium/state_trackers/xlib/old_xmesa.h b/src/gallium/state_trackers/xlib/old_xmesa.h index a60ef96ee0d..d1f585e3299 100644 --- a/src/gallium/state_trackers/xlib/old_xmesa.h +++ b/src/gallium/state_trackers/xlib/old_xmesa.h @@ -168,20 +168,6 @@ extern XMesaContext XMesaCreateContext( XMesaVisual v, extern void XMesaDestroyContext( XMesaContext c ); -#ifdef XFree86Server -/* - * These are the extra routines required for integration with XFree86. - * None of these routines should be user visible. -KEM - */ -extern GLboolean XMesaForceCurrent( XMesaContext c ); - -extern GLboolean XMesaLoseCurrent( XMesaContext c ); - -extern GLboolean XMesaCopyContext( XMesaContext src, - XMesaContext dst, - GLuint mask ); -#endif /* XFree86Server */ - /* * Create an XMesaBuffer from an X window. @@ -213,13 +199,6 @@ extern XMesaBuffer XMesaFindBuffer( Display *dpy, -/* - * Bind a buffer to a context and make the context the current one. - */ -extern GLboolean XMesaMakeCurrent( XMesaContext c, - XMesaBuffer b ); - - /* * Bind two buffers (read and draw) to a context and make the * context the current one. diff --git a/src/gallium/state_trackers/xlib/xm_api.c b/src/gallium/state_trackers/xlib/xm_api.c index b0dba325036..35d4d3c6dc8 100644 --- a/src/gallium/state_trackers/xlib/xm_api.c +++ b/src/gallium/state_trackers/xlib/xm_api.c @@ -1029,13 +1029,6 @@ xmesa_check_and_update_buffer_size(XMesaContext xmctx, XMesaBuffer drawBuffer) } -/* - * Bind buffer b to context c and make c the current rendering context. - */ -GLboolean XMesaMakeCurrent( XMesaContext c, XMesaBuffer b ) -{ - return XMesaMakeCurrent2( c, b, b ); -} /*