void
metrics_end_frame_pre_swap (metrics_t *metrics)
{
- GLint64 swap_end_timestamp, frame_time_ns, latency_ns;
+ GLuint64 swap_end_timestamp, frame_time_ns, latency_ns;
/* Don't leave any counters running over the end_frame work we
* do here. The counters will be started again at the end of
* have more than one entry anyway.
*/
- glGetQueryObjecti64v (metrics->swap_end_timestamp_id,
- GL_QUERY_RESULT, &swap_end_timestamp);
+ glGetQueryObjectui64v (metrics->swap_end_timestamp_id,
+ GL_QUERY_RESULT, &swap_end_timestamp);
if (frames > 0) {
/* Subtract previous frame's timestamp to get frame time. */