From cb9d194f867d62d04b3777b5010c25b5717f358b Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Tue, 10 Jun 2014 14:35:50 +0200 Subject: [PATCH] Removed uses of GLU in tests. --- tests/accuracy.c | 3 +-- tests/fsaa.c | 3 +-- tests/sharing.c | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/tests/accuracy.c b/tests/accuracy.c index 01adbd1b..6a63c889 100644 --- a/tests/accuracy.c +++ b/tests/accuracy.c @@ -29,7 +29,6 @@ // //======================================================================== -#define GLFW_INCLUDE_GLU #include #include @@ -65,7 +64,7 @@ static void framebuffer_size_callback(GLFWwindow* window, int width, int height) glMatrixMode(GL_PROJECTION); glLoadIdentity(); - gluOrtho2D(0.f, window_width, 0.f, window_height); + glOrtho(0.f, window_width, 0.f, window_height, 0.f, 1.f); } static void cursor_position_callback(GLFWwindow* window, double x, double y) diff --git a/tests/fsaa.c b/tests/fsaa.c index 1725825c..459b7111 100644 --- a/tests/fsaa.c +++ b/tests/fsaa.c @@ -29,7 +29,6 @@ // //======================================================================== -#define GLFW_INCLUDE_GLU #include #include @@ -125,7 +124,7 @@ int main(int argc, char** argv) printf("Context reports FSAA is unavailable\n"); glMatrixMode(GL_PROJECTION); - gluOrtho2D(0.f, 1.f, 0.f, 0.5f); + glOrtho(0.f, 1.f, 0.f, 0.5f, 0.f, 1.f); glMatrixMode(GL_MODELVIEW); while (!glfwWindowShouldClose(window)) diff --git a/tests/sharing.c b/tests/sharing.c index 030ea110..54b15c81 100644 --- a/tests/sharing.c +++ b/tests/sharing.c @@ -27,7 +27,6 @@ // //======================================================================== -#define GLFW_INCLUDE_GLU #include #include @@ -100,7 +99,7 @@ static void draw_quad(GLuint texture) glMatrixMode(GL_PROJECTION); glLoadIdentity(); - gluOrtho2D(0.f, 1.f, 0.f, 1.f); + glOrtho(0.f, 1.f, 0.f, 1.f, 0.f, 1.f); glEnable(GL_TEXTURE_2D); glBindTexture(GL_TEXTURE_2D, texture);