[Piglit] [PATCH] arb_texture_view-texsubimage-levels: correct buffer size
Anuj Phogat
anuj.phogat at gmail.com
Thu Feb 2 19:51:29 UTC 2017
On Tue, Jan 31, 2017 at 1:45 AM, Bartosz Tomczyk
<bartosz.tomczyk86 at gmail.com> wrote:
> ---
> tests/spec/arb_texture_view/texsubimage-levels.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/tests/spec/arb_texture_view/texsubimage-levels.c b/tests/spec/arb_texture_view/texsubimage-levels.c
> index 20d956fa2..7bbaf7f8b 100644
> --- a/tests/spec/arb_texture_view/texsubimage-levels.c
> +++ b/tests/spec/arb_texture_view/texsubimage-levels.c
> @@ -89,7 +89,7 @@ piglit_init(int argc, char **argv)
> }
>
> if (use_pbo) {
> - glBufferData(GL_PIXEL_UNPACK_BUFFER, TEX_SIZE * TEX_SIZE * 4,
> + glBufferData(GL_PIXEL_UNPACK_BUFFER, dim * dim * 4,
> pixels, GL_STREAM_DRAW);
> }
> glTexSubImage2D(GL_TEXTURE_2D,
> @@ -118,7 +118,7 @@ piglit_init(int argc, char **argv)
> }
>
> if (use_pbo) {
> - glBufferData(GL_PIXEL_UNPACK_BUFFER, TEX_SIZE * TEX_SIZE * 4,
> + glBufferData(GL_PIXEL_UNPACK_BUFFER, dim * dim * 4,
> pixels, GL_STREAM_DRAW);
> }
> glTexSubImage2D(GL_TEXTURE_2D, i, 0, 0, dim, dim,
> --
> 2.11.0
>
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/piglit
Reviewed-by: Anuj Phogat <anuj.phogat at gmail.com>
I can push it upstream if you don't have the access.
More information about the Piglit
mailing list