From 71c474416a592a00db1f136eec822b2dbce0132f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20K=C3=A5re=20Alsaker?= Date: Wed, 3 Oct 2012 17:30:05 +0200 Subject: [PATCH] tests: Remove GLfloat usage. --- tests/matrix-test.c | 3 +-- tests/surface-test.c | 2 +- tests/test-client.c | 3 +-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/tests/matrix-test.c b/tests/matrix-test.c index 8e9d13f1..cc78492f 100644 --- a/tests/matrix-test.c +++ b/tests/matrix-test.c @@ -22,7 +22,6 @@ #include #include -#include #include #include #include @@ -54,7 +53,7 @@ read_timer(void) } static double -det3x3(const GLfloat *c0, const GLfloat *c1, const GLfloat *c2) +det3x3(const float *c0, const float *c1, const float *c2) { return (double) c0[0] * c1[1] * c2[2] + diff --git a/tests/surface-test.c b/tests/surface-test.c index e8fcb9ec..28243b1e 100644 --- a/tests/surface-test.c +++ b/tests/surface-test.c @@ -30,7 +30,7 @@ TEST(surface_transform) { struct weston_surface *surface; - GLfloat x, y; + float x, y; surface = weston_surface_create(compositor); weston_surface_configure(surface, 100, 100, 200, 200); diff --git a/tests/test-client.c b/tests/test-client.c index ef813c72..fb9d5c0a 100644 --- a/tests/test-client.c +++ b/tests/test-client.c @@ -27,7 +27,6 @@ #include #include #include -#include /* needed for GLfloat */ #include struct display { @@ -42,7 +41,7 @@ struct input { struct wl_seat *seat; struct wl_pointer *pointer; struct wl_keyboard *keyboard; - GLfloat x, y; + float x, y; uint32_t button_mask; struct surface *pointer_focus; struct surface *keyboard_focus;