[Piglit] [PATCH 1/3] texgrad: use glFrustum() instead of gluPerspective()

Ian Romanick idr at freedesktop.org
Mon Oct 29 10:35:02 PDT 2012


On 10/29/2012 08:04 AM, Brian Paul wrote:

I think any implementation that can do ARB_fragment_program can also do 
OpenGL 1.4.  Does this remove all of the GLU dependencies?

The series is:

Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>


> 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();
>



More information about the Piglit mailing list