[Piglit] [PATCH] triangle-rasterization-overdraw: s/vector::data/&vector::front/

Jose Fonseca jfonseca at vmware.com
Wed May 16 00:42:18 PDT 2012


Looks good. Thanks Vinson.

Jose

----- Original Message -----
> std::vector::data is in C++11 and not in C++03.
> 
> Fixes build with Solaris Studio.
> 
> Signed-off-by: Vinson Lee <vlee at freedesktop.org>
> ---
>  tests/general/triangle-rasterization-overdraw.cpp |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tests/general/triangle-rasterization-overdraw.cpp
> b/tests/general/triangle-rasterization-overdraw.cpp
> index f0442a7..062fe17 100644
> --- a/tests/general/triangle-rasterization-overdraw.cpp
> +++ b/tests/general/triangle-rasterization-overdraw.cpp
> @@ -223,7 +223,7 @@ bool TestCase::run(void) const
>  
>     /* Draw triangle fan */
>     glEnableClientState(GL_VERTEX_ARRAY);
> -   glVertexPointer(2, GL_FLOAT, 0, triangle_fan.data());
> +   glVertexPointer(2, GL_FLOAT, 0, &triangle_fan.front());
>     glDrawArrays(GL_TRIANGLE_FAN, 0, triangle_fan.size());
>     glDisableClientState(GL_VERTEX_ARRAY);
>  
> --
> 1.7.10.1
> 
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/piglit
> 


More information about the Piglit mailing list