summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorJon Smirl <[email protected]>2004-05-09 04:38:42 +0000
committerJon Smirl <[email protected]>2004-05-09 04:38:42 +0000
commit1cbee9c159384e210e7dbbe0f5acd9d78cf4ce23 (patch)
treeb81a86c547b4b624651bce83ca238cdc366d4c4f /src/mesa/drivers
parent302781f6cc09434c379b3c39a80edab346910915 (diff)
Fix solo build, add missing #ifdef NEW_INTERFACE
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/i830/i830_screen.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i830/i830_screen.c b/src/mesa/drivers/dri/i830/i830_screen.c
index 10a1f4e5b76..1a40c79a013 100644
--- a/src/mesa/drivers/dri/i830/i830_screen.c
+++ b/src/mesa/drivers/dri/i830/i830_screen.c
@@ -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 */