[Piglit] [PATCH] util: Fix the vertex buffer setup

Fredrik Höglund fredrik at kde.org
Mon May 11 15:00:30 PDT 2015


On Monday 11 May 2015, Anuj Phogat wrote:
> Signed-off-by: Anuj Phogat <anuj.phogat at gmail.com>
> ---
>  tests/util/piglit-test-pattern.cpp | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/tests/util/piglit-test-pattern.cpp b/tests/util/piglit-test-pattern.cpp
> index 2f51666..12d9918 100644
> --- a/tests/util/piglit-test-pattern.cpp
> +++ b/tests/util/piglit-test-pattern.cpp
> @@ -809,7 +809,7 @@ ManifestStencil::compile()
>  		{  1, -1 },
>  		{  1,  1 }
>  	};
> -	glGenVertexArrays(1, &vertex_buf);
> +	glGenBuffers(1, &vertex_buf);
>  	glBindBuffer(GL_ARRAY_BUFFER, vertex_buf);
>  	glBufferData(GL_ARRAY_BUFFER, sizeof(vertex_data), vertex_data,
>  		     GL_STATIC_DRAW);
> @@ -900,7 +900,7 @@ ManifestDepth::compile()
>  		{  1, -1 },
>  		{  1,  1 }
>  	};
> -	glGenVertexArrays(1, &vertex_buf);
> +	glGenBuffers(1, &vertex_buf);
>  	glBindBuffer(GL_ARRAY_BUFFER, vertex_buf);
>  	glBufferData(GL_ARRAY_BUFFER, sizeof(vertex_data), vertex_data,
>  		     GL_STATIC_DRAW);
> 

Reviewed-by: Fredrik Höglund <fredrik at kde.org>



More information about the Piglit mailing list