driCalculateSwapUsage( __DRIdrawablePrivate *dPriv, int64_t last_swap_ust,
int64_t current_ust )
{
-#if 0
- static glXGetMscRateOML_t get_msc_rate = NULL;
+ static PFNGLXGETMSCRATEOMLPROC get_msc_rate = NULL;
int32_t n;
int32_t d;
int interval;
if ( get_msc_rate == NULL ) {
- get_msc_rate = (glXGetMscRateOML_t)
+ get_msc_rate = (PFNGLXGETMSCRATEOMLPROC)
glXGetProcAddress( (const GLubyte *) "glXGetMscRateOML" );
}
}
return usage;
-#else
- return 0;
-#endif
}
/*@}*/
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_ */