diff options
author | Brian Paul <[email protected]> | 2009-10-15 13:00:03 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-10-15 13:00:03 -0600 |
commit | 5b7d9053a08d5042206781a664ecd74efac0eb86 (patch) | |
tree | b44099093dc947a68e3aed7c10af634c5792ea57 /progs/egl/egltri.c | |
parent | 6c21c8862bc6edc9cddf3b6eb6f276961099a7a8 (diff) |
progs/egl: put declarations before code
Diffstat (limited to 'progs/egl/egltri.c')
-rw-r--r-- | progs/egl/egltri.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/progs/egl/egltri.c b/progs/egl/egltri.c index 79f6702007e..9bbc3cddaf1 100644 --- a/progs/egl/egltri.c +++ b/progs/egl/egltri.c @@ -127,6 +127,7 @@ static void run(EGLDisplay dpy, EGLSurface surf, int ttr) double st = current_time(); double ct = st; int frames = 0; + GLfloat seconds, fps; while (ct - st < ttr) { @@ -139,8 +140,8 @@ static void run(EGLDisplay dpy, EGLSurface surf, int ttr) frames++; } - GLfloat seconds = ct - st; - GLfloat fps = frames / seconds; + seconds = ct - st; + fps = frames / seconds; printf("%d frames in %3.1f seconds = %6.3f FPS\n", frames, seconds, fps); } |