[Piglit] [PATCH] triangle-rasterization-overdraw: s/vector::data/&vector::front/
Vinson Lee
vlee at freedesktop.org
Tue May 15 22:31:49 PDT 2012
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
More information about the Piglit
mailing list