summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/common
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2005-06-02 04:05:45 +0000
committerBrian Paul <[email protected]>2005-06-02 04:05:45 +0000
commit1516f559bc1d8af1ca3a12c78b23937e9208b5c6 (patch)
tree211d4a41238d8658f3aa34386b58b68ff10dbcde /src/mesa/drivers/dri/common
parentc4fbdb090cb02f57e83e5f679cadf62c22ec286b (diff)
start removing old (pre-renderbuffer) span code
Diffstat (limited to 'src/mesa/drivers/dri/common')
-rw-r--r--src/mesa/drivers/dri/common/dri_util.c8
-rw-r--r--src/mesa/drivers/dri/common/dri_util.h2
2 files changed, 8 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c
index 0c07cc0c148..b633ae0dcef 100644
--- a/src/mesa/drivers/dri/common/dri_util.c
+++ b/src/mesa/drivers/dri/common/dri_util.c
@@ -1648,7 +1648,8 @@ float
driCalculateSwapUsage( __DRIdrawablePrivate *dPriv, int64_t last_swap_ust,
int64_t current_ust )
{
- static PFNGLXGETMSCRATEOMLPROC get_msc_rate = NULL;
+#if 0
+ static glXGetMscRateOML_t get_msc_rate = NULL;
int32_t n;
int32_t d;
int interval;
@@ -1656,7 +1657,7 @@ driCalculateSwapUsage( __DRIdrawablePrivate *dPriv, int64_t last_swap_ust,
if ( get_msc_rate == NULL ) {
- get_msc_rate = (PFNGLXGETMSCRATEOMLPROC)
+ get_msc_rate = (glXGetMscRateOML_t)
glXGetProcAddress( (const GLubyte *) "glXGetMscRateOML" );
}
@@ -1685,6 +1686,9 @@ driCalculateSwapUsage( __DRIdrawablePrivate *dPriv, int64_t last_swap_ust,
}
return usage;
+#else
+ return 0;
+#endif
}
/*@}*/
diff --git a/src/mesa/drivers/dri/common/dri_util.h b/src/mesa/drivers/dri/common/dri_util.h
index 6ef1b114f9c..cb4e519d807 100644
--- a/src/mesa/drivers/dri/common/dri_util.h
+++ b/src/mesa/drivers/dri/common/dri_util.h
@@ -568,9 +568,11 @@ driCalculateSwapUsage( __DRIdrawablePrivate *dPriv,
int64_t last_swap_ust, int64_t current_ust );
/* Test for the GLX header glx.h */
+#if 0
#ifndef GLX
extern void
(*glXGetProcAddress(const GLubyte *procname))( void );
#endif
+#endif
#endif /* _DRI_UTIL_H_ */