[Piglit] [PATCH 10/17] glean: Replace gluOrtho2D with plain glOrtho

Ian Romanick idr at freedesktop.org
Tue Sep 22 08:36:35 PDT 2015


From: Ian Romanick <ian.d.romanick at intel.com>

Why was gluOrtho2D ever even a function?!?

Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
---
 tests/glean/tfbo.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/glean/tfbo.cpp b/tests/glean/tfbo.cpp
index eb3092e..eb66af4 100644
--- a/tests/glean/tfbo.cpp
+++ b/tests/glean/tfbo.cpp
@@ -53,7 +53,7 @@ FBOTest::setup(void)
         glMatrixMode(GL_PROJECTION);
 
         glLoadIdentity();
-        gluOrtho2D(0, 100, 0, 100);
+        glOrtho(0, 100, 0, 100, -1, 1);
         glMatrixMode(GL_MODELVIEW);
         glLoadIdentity();
         glDrawBuffer(GL_FRONT);
-- 
2.1.0



More information about the Piglit mailing list