[Piglit] [PATCH 1/3] texgrad: use glFrustum() instead of gluPerspective()
Brian Paul
brianp at vmware.com
Mon Oct 29 08:04:57 PDT 2012
To remove dependency on glu.h
---
.../arb_shader_texture_lod/execution/texgrad.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/tests/spec/arb_shader_texture_lod/execution/texgrad.c b/tests/spec/arb_shader_texture_lod/execution/texgrad.c
index 0f3761f..e502ecd 100644
--- a/tests/spec/arb_shader_texture_lod/execution/texgrad.c
+++ b/tests/spec/arb_shader_texture_lod/execution/texgrad.c
@@ -30,7 +30,6 @@
*/
#include "piglit-util-gl-common.h"
-#include <GL/glu.h>
PIGLIT_GL_TEST_CONFIG_BEGIN
@@ -137,7 +136,7 @@ void piglit_init(int argc, char **argv)
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
- gluPerspective(45, 1, 0.1, 1000);
+ glFrustum(-0.1, 0.1, -0.1, 0.1, 0.1, 1000.0);
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
--
1.7.3.4
More information about the Piglit
mailing list