mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 03:08:05 +02:00
Fix GLUT_ELAPSED_TIME query
This commit is contained in:
parent
ea9f98b04b
commit
ca9cccd81c
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue