added Stream support to ogl::Buffer

This commit is contained in:
Vladislav Vinogradov
2013-04-15 14:17:18 +04:00
parent 649737b6a8
commit 6994a02c15
4 changed files with 342 additions and 138 deletions

View File

@@ -198,7 +198,8 @@ GPU_TEST_P(Buffer, CopyToBuffer)
cv::ogl::Buffer buf(gold, cv::ogl::Buffer::ARRAY_BUFFER, true);
cv::ogl::Buffer dst;
buf.copyTo(dst, cv::ogl::Buffer::ARRAY_BUFFER, true);
buf.copyTo(dst);
dst.setAutoRelease(true);
EXPECT_NE(buf.bufId(), dst.bufId());