[Piglit] [PATCH 2/2] depthstencil-render-miplevels: Fix stencil drawing for width %4 != 0.
Paul Berry
stereotype441 at gmail.com
Fri Oct 18 20:35:45 CEST 2013
On 9 October 2013 13:33, Eric Anholt <eric at anholt.net> wrote:
> It didn't affect test results, since we don't probe this data and it's
> only in manual mode, but it did cause buffer overflow.
> ---
> tests/texturing/depthstencil-render-miplevels.cpp | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/tests/texturing/depthstencil-render-miplevels.cpp
> b/tests/texturing/depthstencil-render-miplevels.cpp
> index 813ca6f..f1ba658 100644
> --- a/tests/texturing/depthstencil-render-miplevels.cpp
> +++ b/tests/texturing/depthstencil-render-miplevels.cpp
> @@ -339,6 +339,9 @@ piglit_init(int argc, char **argv)
> print_usage_and_exit(argv[0]);
> }
>
> + glPixelStorei(GL_PACK_ALIGNMENT, 1);
> + glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
> +
> /* argv[1]: texture size */
> {
> char *endptr = NULL;
> --
> 1.8.4.rc3
>
Reviewed-by: Paul Berry <stereotype441 at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/piglit/attachments/20131018/6864b3b2/attachment-0001.html>
More information about the Piglit
mailing list