Fix solo build, add missing #ifdef NEW_INTERFACE

This commit is contained in:
Jon Smirl 2004-05-09 04:38:42 +00:00
parent 302781f6cc
commit 1cbee9c159

View file

@ -62,7 +62,9 @@ DRI_CONF_BEGIN
DRI_CONF_END;
const GLuint __driNConfigOptions = 1;
#ifdef USE_NEW_INTERFACE
static PFNGLXCREATECONTEXTMODES create_context_modes = NULL;
#endif /*USE_NEW_INTERFACE*/
static int i830_malloc_proxy_buf(drmBufMapPtr buffers)
{
@ -401,6 +403,7 @@ void *__driCreateScreen(struct DRIDriverRec *driver,
#endif
#ifdef USE_NEW_INTERFACE
static __GLcontextModes * fill_in_modes( __GLcontextModes * modes,
unsigned pixel_bits,
unsigned depth_bits,
@ -465,8 +468,10 @@ static __GLcontextModes * fill_in_modes( __GLcontextModes * modes,
return modes;
}
#endif /* USE_NEW_INTERFACE */
#ifdef USE_NEW_INTERFACE
static __GLcontextModes *
i830FillInModes( unsigned pixel_bits, unsigned depth_bits,
unsigned stencil_bits, GLboolean have_back_buffer )
@ -532,6 +537,7 @@ i830FillInModes( unsigned pixel_bits, unsigned depth_bits,
return modes;
}
#endif /* USE_NEW_INTERFACE */
/**
@ -544,6 +550,7 @@ i830FillInModes( unsigned pixel_bits, unsigned depth_bits,
* \return A pointer to a \c __DRIscreenPrivate on success, or \c NULL on
* failure.
*/
#ifdef USE_NEW_INTERFACE
void * __driCreateNewScreen( Display *dpy, int scrn, __DRIscreen *psc,
const __GLcontextModes * modes,
const __DRIversion * ddx_version,
@ -575,3 +582,4 @@ void * __driCreateNewScreen( Display *dpy, int scrn, __DRIscreen *psc,
return (void *) psp;
}
#endif /* USE_NEW_INTERFACE */