aboutsummaryrefslogtreecommitdiff
path: root/samples/OpenGL/x11argb_opengl_glsl/x11argb_opengl_glsl.c
diff options
context:
space:
mode:
Diffstat (limited to 'samples/OpenGL/x11argb_opengl_glsl/x11argb_opengl_glsl.c')
-rw-r--r--samples/OpenGL/x11argb_opengl_glsl/x11argb_opengl_glsl.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/samples/OpenGL/x11argb_opengl_glsl/x11argb_opengl_glsl.c b/samples/OpenGL/x11argb_opengl_glsl/x11argb_opengl_glsl.c
index 0852cbc..7aae5a8 100644
--- a/samples/OpenGL/x11argb_opengl_glsl/x11argb_opengl_glsl.c
+++ b/samples/OpenGL/x11argb_opengl_glsl/x11argb_opengl_glsl.c
@@ -578,14 +578,8 @@ static void redrawTheWindow(double T)
struct timespec Ta, Tb;
- clock_gettime(CLOCK_MONOTONIC_RAW, &Ta);
glXSwapBuffers(Xdisplay, glX_window_handle);
- glXWaitGL();
- clock_gettime(CLOCK_MONOTONIC_RAW, &Tb);
-
- fprintf(stderr, "glXSwapBuffers + glXWaitGL returned after %f ms\n",
- 1e3*( (double)Tb.tv_sec + 1e-9*(double)Tb.tv_nsec ) -
- 1e3*( (double)Ta.tv_sec + 1e-9*(double)Ta.tv_nsec ) );
+ glXWaitGL();
}
static double getftime(void) {