#include <sys/time.h>
-#define GL_GLEXT_PROTOTYPES
-#include <GL/gl.h>
-
+#include "fips-dispatch.h"
#include "metrics.h"
typedef struct counter
counter_t *counter = current_context.counter_head;
while (counter) {
- GLint available;
- GLuint elapsed;
+ GLuint available, elapsed;
- glGetQueryObjectiv (counter->id, GL_QUERY_RESULT_AVAILABLE,
- &available);
+ glGetQueryObjectuiv (counter->id, GL_QUERY_RESULT_AVAILABLE,
+ &available);
if (! available)
break;