Fix GLUT_ELAPSED_TIME query

This commit is contained in:
Keith Whitwell 2003-01-10 17:47:49 +00:00
parent ea9f98b04b
commit ca9cccd81c

View file

@ -48,7 +48,7 @@ int APIENTRY glutGet (GLenum type)
return 1;
case GLUT_ELAPSED_TIME: {
static int inited = 0;
struct timeval elapsed, beginning, now;
static struct timeval elapsed, beginning, now;
if (!inited) {
gettimeofday(&beginning, 0);
inited = 1;