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

Anuj Phogat anuj.phogat at gmail.com
Mon May 11 14:57:17 PDT 2015


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);
-- 
1.9.3



More information about the Piglit mailing list