mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 11:38:05 +02:00
oops, undo previous change
This commit is contained in:
parent
1516f559bc
commit
13c8f985d9
2 changed files with 2 additions and 8 deletions
|
|
@ -1648,8 +1648,7 @@ float
|
||||||
driCalculateSwapUsage( __DRIdrawablePrivate *dPriv, int64_t last_swap_ust,
|
driCalculateSwapUsage( __DRIdrawablePrivate *dPriv, int64_t last_swap_ust,
|
||||||
int64_t current_ust )
|
int64_t current_ust )
|
||||||
{
|
{
|
||||||
#if 0
|
static PFNGLXGETMSCRATEOMLPROC get_msc_rate = NULL;
|
||||||
static glXGetMscRateOML_t get_msc_rate = NULL;
|
|
||||||
int32_t n;
|
int32_t n;
|
||||||
int32_t d;
|
int32_t d;
|
||||||
int interval;
|
int interval;
|
||||||
|
|
@ -1657,7 +1656,7 @@ driCalculateSwapUsage( __DRIdrawablePrivate *dPriv, int64_t last_swap_ust,
|
||||||
|
|
||||||
|
|
||||||
if ( get_msc_rate == NULL ) {
|
if ( get_msc_rate == NULL ) {
|
||||||
get_msc_rate = (glXGetMscRateOML_t)
|
get_msc_rate = (PFNGLXGETMSCRATEOMLPROC)
|
||||||
glXGetProcAddress( (const GLubyte *) "glXGetMscRateOML" );
|
glXGetProcAddress( (const GLubyte *) "glXGetMscRateOML" );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1686,9 +1685,6 @@ driCalculateSwapUsage( __DRIdrawablePrivate *dPriv, int64_t last_swap_ust,
|
||||||
}
|
}
|
||||||
|
|
||||||
return usage;
|
return usage;
|
||||||
#else
|
|
||||||
return 0;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*@}*/
|
/*@}*/
|
||||||
|
|
|
||||||
|
|
@ -568,11 +568,9 @@ driCalculateSwapUsage( __DRIdrawablePrivate *dPriv,
|
||||||
int64_t last_swap_ust, int64_t current_ust );
|
int64_t last_swap_ust, int64_t current_ust );
|
||||||
|
|
||||||
/* Test for the GLX header glx.h */
|
/* Test for the GLX header glx.h */
|
||||||
#if 0
|
|
||||||
#ifndef GLX
|
#ifndef GLX
|
||||||
extern void
|
extern void
|
||||||
(*glXGetProcAddress(const GLubyte *procname))( void );
|
(*glXGetProcAddress(const GLubyte *procname))( void );
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* _DRI_UTIL_H_ */
|
#endif /* _DRI_UTIL_H_ */
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue