xlib: remove dummy GLX_MESA_set_3dfx_mode implementation
The implementation is a simple 'return EGL_FALSE'. Stop pretending and simply remove it. Note: the removal of XMesa API is fine, since there hasn't been any users for it in years. Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
parent
7a4107291d
commit
f8aea0ce47
|
@ -61,7 +61,7 @@ TBD
|
|||
<h2>Changes</h2>
|
||||
|
||||
<ul>
|
||||
TBD
|
||||
<li>Remove incomplete GLX_MESA_set_3dfx_mode from the Xlib libGL</li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
|
|
@ -2749,16 +2749,6 @@ Fake_glXReleaseBuffersMESA( Display *dpy, GLXDrawable d )
|
|||
|
||||
|
||||
|
||||
/*** GLX_MESA_set_3dfx_mode ***/
|
||||
|
||||
static Bool
|
||||
Fake_glXSet3DfxModeMESA( int mode )
|
||||
{
|
||||
return XMesaSetFXmode( mode );
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*** GLX_MESA_agp_offset ***/
|
||||
|
||||
static GLuint
|
||||
|
@ -2984,9 +2974,6 @@ _mesa_GetGLXDispatchTable(void)
|
|||
/*** GLX_MESA_pixmap_colormap ***/
|
||||
glx.CreateGLXPixmapMESA = Fake_glXCreateGLXPixmapMESA;
|
||||
|
||||
/*** GLX_MESA_set_3dfx_mode ***/
|
||||
glx.Set3DfxModeMESA = Fake_glXSet3DfxModeMESA;
|
||||
|
||||
/*** GLX_EXT_texture_from_pixmap ***/
|
||||
glx.BindTexImageEXT = Fake_glXBindTexImageEXT;
|
||||
glx.ReleaseTexImageEXT = Fake_glXReleaseTexImageEXT;
|
||||
|
|
|
@ -1004,21 +1004,6 @@ glXCreateGLXPixmapMESA(Display *dpy, XVisualInfo *visinfo, Pixmap pixmap, Colorm
|
|||
|
||||
|
||||
|
||||
/*** GLX_MESA_set_3dfx_mode ***/
|
||||
|
||||
Bool PUBLIC
|
||||
glXSet3DfxModeMESA(int mode)
|
||||
{
|
||||
struct _glxapi_table *t;
|
||||
Display *dpy = glXGetCurrentDisplay();
|
||||
GET_DISPATCH(dpy, t);
|
||||
if (!t)
|
||||
return False;
|
||||
return t->Set3DfxModeMESA(mode);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*** GLX_EXT_texture_from_pixmap */
|
||||
|
||||
void PUBLIC
|
||||
|
@ -1065,7 +1050,6 @@ _glxapi_get_extensions(void)
|
|||
"GLX_MESA_copy_sub_buffer",
|
||||
"GLX_MESA_release_buffers",
|
||||
"GLX_MESA_pixmap_colormap",
|
||||
"GLX_MESA_set_3dfx_mode",
|
||||
"GLX_SGIX_fbconfig",
|
||||
"GLX_SGIX_pbuffer",
|
||||
"GLX_EXT_texture_from_pixmap",
|
||||
|
@ -1237,9 +1221,6 @@ static struct name_address_pair GLX_functions[] = {
|
|||
/*** GLX_MESA_release_buffers ***/
|
||||
{ "glXReleaseBuffersMESA", (__GLXextFuncPtr) glXReleaseBuffersMESA },
|
||||
|
||||
/*** GLX_MESA_set_3dfx_mode ***/
|
||||
{ "glXSet3DfxModeMESA", (__GLXextFuncPtr) glXSet3DfxModeMESA },
|
||||
|
||||
/*** GLX_ARB_get_proc_address ***/
|
||||
{ "glXGetProcAddressARB", (__GLXextFuncPtr) glXGetProcAddressARB },
|
||||
|
||||
|
|
|
@ -183,9 +183,6 @@ struct _glxapi_table {
|
|||
/*** GLX_MESA_pixmap_colormap ***/
|
||||
GLXPixmap (*CreateGLXPixmapMESA)(Display *dpy, XVisualInfo *visinfo, Pixmap pixmap, Colormap cmap);
|
||||
|
||||
/*** GLX_MESA_set_3dfx_mode ***/
|
||||
Bool (*Set3DfxModeMESA)(int mode);
|
||||
|
||||
/*** GLX_EXT_texture_from_pixmap ***/
|
||||
void (*BindTexImageEXT)(Display *dpy, GLXDrawable drawable, int buffer,
|
||||
const int *attrib_list);
|
||||
|
|
|
@ -1314,14 +1314,6 @@ Display *XMesaGetCurrentDisplay(void)
|
|||
|
||||
|
||||
|
||||
GLboolean XMesaSetFXmode( GLint mode )
|
||||
{
|
||||
(void) mode;
|
||||
return GL_FALSE;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* Copy the back buffer to the front buffer. If there's no back buffer
|
||||
* this is a no-op.
|
||||
|
|
|
@ -85,14 +85,6 @@ extern "C" {
|
|||
#define XMESA_EXTENSIONS 2
|
||||
|
||||
|
||||
/*
|
||||
* Values passed to XMesaSetFXmode:
|
||||
*/
|
||||
#define XMESA_FX_WINDOW 1
|
||||
#define XMESA_FX_FULLSCREEN 2
|
||||
|
||||
|
||||
|
||||
typedef struct xmesa_context *XMesaContext;
|
||||
|
||||
typedef struct xmesa_visual *XMesaVisual;
|
||||
|
@ -343,20 +335,6 @@ extern unsigned long XMesaDitherColor( XMesaContext xmesa,
|
|||
|
||||
|
||||
|
||||
/*
|
||||
* 3Dfx Glide driver only!
|
||||
* Set 3Dfx/Glide full-screen or window rendering mode.
|
||||
* Input: mode - either XMESA_FX_WINDOW (window rendering mode) or
|
||||
* XMESA_FX_FULLSCREEN (full-screen rendering mode)
|
||||
* Return: GL_TRUE if success
|
||||
* GL_FALSE if invalid mode or if not using 3Dfx driver
|
||||
*
|
||||
* New in Mesa 2.6.
|
||||
*/
|
||||
extern GLboolean XMesaSetFXmode( GLint mode );
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* Reallocate the back/depth/stencil/accum/etc/ buffers associated with
|
||||
* buffer <b> if its size has changed.
|
||||
|
|
Loading…
Reference in New Issue