summaryrefslogtreecommitdiff
path: root/progs/egl/egltri.c
diff options
context:
space:
mode:
Diffstat (limited to 'progs/egl/egltri.c')
-rw-r--r--progs/egl/egltri.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/progs/egl/egltri.c b/progs/egl/egltri.c
index 44096d94a2..79f6702007 100644
--- a/progs/egl/egltri.c
+++ b/progs/egl/egltri.c
@@ -130,9 +130,7 @@ static void run(EGLDisplay dpy, EGLSurface surf, int ttr)
while (ct - st < ttr)
{
- double tt = current_time();
- double dt = tt - ct;
- ct = tt;
+ ct = current_time();
draw();
@@ -174,7 +172,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)) {