oops, undo previous change
authorBrian Paul <brian.paul@tungstengraphics.com>
Thu, 2 Jun 2005 04:07:08 +0000 (04:07 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Thu, 2 Jun 2005 04:07:08 +0000 (04:07 +0000)
src/mesa/drivers/dri/common/dri_util.c
src/mesa/drivers/dri/common/dri_util.h

index b633ae0dcefd195d18b2c58ee851684f843b14ed..0c07cc0c1485d3c32b65515214e39d2d4ae31176 100644 (file)
@@ -1648,8 +1648,7 @@ float
 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;
@@ -1657,7 +1656,7 @@ driCalculateSwapUsage( __DRIdrawablePrivate *dPriv, int64_t last_swap_ust,
 
 
    if ( get_msc_rate == NULL ) {
-      get_msc_rate = (glXGetMscRateOML_t)
+      get_msc_rate = (PFNGLXGETMSCRATEOMLPROC)
          glXGetProcAddress( (const GLubyte *) "glXGetMscRateOML" );
    }
    
@@ -1686,9 +1685,6 @@ driCalculateSwapUsage( __DRIdrawablePrivate *dPriv, int64_t last_swap_ust,
    }
    
    return usage;
-#else
-   return 0;
-#endif
 }
 
 /*@}*/
index cb4e519d8076f3fc2ece54e884b518a09e700b70..6ef1b114f9c684bc361ef93f685d00ba592f6909 100644 (file)
@@ -568,11 +568,9 @@ 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_ */