[Piglit] [PATCH 06/15] arb_direct_state_access: Testing CopyNamedBufferSubData.

Laura Ekstrand laura at jlekstrand.net
Fri Jan 23 11:03:30 PST 2015


---
 tests/spec/arb_direct_state_access/namedbufferstorage.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/tests/spec/arb_direct_state_access/namedbufferstorage.c b/tests/spec/arb_direct_state_access/namedbufferstorage.c
index 6630467..c68bc27 100644
--- a/tests/spec/arb_direct_state_access/namedbufferstorage.c
+++ b/tests/spec/arb_direct_state_access/namedbufferstorage.c
@@ -218,15 +218,10 @@ read_subtest(GLboolean coherent, GLboolean client_storage)
 	glClear(GL_COLOR_BUFFER_BIT);
 	glCreateBuffers(1, &srcbuf);
 	glNamedBufferData(srcbuf, BUF_SIZE, array, GL_STATIC_DRAW);
-	glBindBuffer(GL_COPY_READ_BUFFER, srcbuf);
 
 	/* Copy some data to the mapped buffer and check if the CPU can see it. */
-	glBindBuffer(GL_COPY_WRITE_BUFFER, buffer);
-	glCopyBufferSubData(GL_COPY_READ_BUFFER, GL_COPY_WRITE_BUFFER,
-			    0, 0, BUF_SIZE);
+	glCopyNamedBufferSubData(srcbuf, buffer, 0, 0, BUF_SIZE);
 
-	glBindBuffer(GL_COPY_READ_BUFFER, 0);
-	glBindBuffer(GL_COPY_WRITE_BUFFER, 0);
 	glDeleteBuffers(1, &srcbuf);
 
 	if (!coherent)
-- 
2.1.0



More information about the Piglit mailing list