aboutsummaryrefslogtreecommitdiff
path: root/samples/OpenGL/x11argb_opengl_glsl/x11argb_opengl_glsl.c
diff options
context:
space:
mode:
authorWolfgang Draxinger <Wolfgang.Draxinger@draxit.de>2014-04-26 18:21:56 +0200
committerWolfgang Draxinger <Wolfgang.Draxinger@draxit.de>2014-04-26 18:21:56 +0200
commit4542fdb44ae7525b2806233b1d499b1c0202fbf7 (patch)
treee64b1c39c4f988e0d730c2276c209e2083d18776 /samples/OpenGL/x11argb_opengl_glsl/x11argb_opengl_glsl.c
parent9410ac0867d560bbe0a475c44e2522dbcb2ac4db (diff)
downloadcodesamples-4542fdb44ae7525b2806233b1d499b1c0202fbf7.tar.gz
codesamples-4542fdb44ae7525b2806233b1d499b1c0202fbf7.tar.bz2
rotateable observer
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) {