[Piglit] [PATCH] dlist-clear: call piglit_ortho_projection() in piglit_display()

Jose Fonseca jfonseca at vmware.com
Wed Jun 22 05:14:41 PDT 2011


Looks good to me.

Jose

----- Original Message -----
> If the window gets resized (either by the user or window system)
> this will ensure that the ortho projection is up to date with
> respect to the window size.  Setting the ortho projection in
> piglit_init() depends on the window size not changing between
> init time and draw time.
> ---
>  tests/general/dlist-clear.c |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/tests/general/dlist-clear.c
> b/tests/general/dlist-clear.c
> index 4f81949..f8e6b13 100644
> --- a/tests/general/dlist-clear.c
> +++ b/tests/general/dlist-clear.c
> @@ -45,6 +45,8 @@ piglit_display(void)
>  	static float green[] = {0.0, 1.0, 0.0, 0.0};
>  	static float blue[]  = {0.0, 0.0, 1.0, 0.0};
>  
> +	piglit_ortho_projection(piglit_width, piglit_height, GL_FALSE);
> +
>  	glClearColor(0.5, 0.0, 0.0, 0.0);
>  	glColor4fv(red);
>  
> --
> 1.7.3.4
> 
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/piglit
> 


More information about the Piglit mailing list