diff options
Diffstat (limited to 'progs/egl/egltri.c')
| -rw-r--r-- | progs/egl/egltri.c | 11 | 
1 files changed, 5 insertions, 6 deletions
| diff --git a/progs/egl/egltri.c b/progs/egl/egltri.c index 44096d94a2..9bbc3cddaf 100644 --- a/progs/egl/egltri.c +++ b/progs/egl/egltri.c @@ -127,12 +127,11 @@ 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)  	{ -		double tt = current_time(); -		double dt = tt - ct; -		ct = tt; +		ct = current_time();  		draw(); @@ -141,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);  } @@ -174,7 +173,7 @@ int main(int argc, char *argv[])  	}  	/* DBR : Create EGL context/surface etc */ -	d = eglGetDisplay((EGLNativeDisplayType)"!EGL_i915"); +	d = eglGetDisplay(EGL_DEFAULT_DISPLAY);  	assert(d);  	if (!eglInitialize(d, &maj, &min)) { | 
