[Piglit] [PATCH] dlist-clear: call piglit_ortho_projection() in piglit_display()
Ian Romanick
idr at freedesktop.org
Wed Jun 22 11:03:00 PDT 2011
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 06/21/2011 03:05 PM, Brian Paul wrote:
> 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.
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
> ---
> 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);
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
iEYEARECAAYFAk4CLlMACgkQX1gOwKyEAw+4jwCeMy/lPNVIRbsNZGzT9ljrxWz5
SOQAoI+YvxSVo4RiXyWa17iBvf3gMYJf
=jqJ3
-----END PGP SIGNATURE-----
More information about the Piglit
mailing list