summaryrefslogtreecommitdiffstats
path: root/progs/egl/egltri.c
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2009-09-30 11:13:16 +0800
committerBrian Paul <[email protected]>2009-09-30 08:15:30 -0600
commitfa8df0c40d44c2f1fe982a07619b1cbf1bfed271 (patch)
treeb78352c16a938db4a6ead4c124444f3c3819f7fa /progs/egl/egltri.c
parentcb0de06301cd086a02ca709917819119dc1a8fd9 (diff)
progs/egl: Replace EGL_i915 by EGL_DEFAULT_DISPLAY.
Signed-off-by: Chia-I Wu <[email protected]>
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 44096d94a27..79f6702007e 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)) {