summaryrefslogtreecommitdiff
path: root/test/i965_test_fixture.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/i965_test_fixture.cpp')
-rw-r--r--test/i965_test_fixture.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/i965_test_fixture.cpp b/test/i965_test_fixture.cpp
index 8fd9142..74403f8 100644
--- a/test/i965_test_fixture.cpp
+++ b/test/i965_test_fixture.cpp
@@ -83,12 +83,13 @@ void I965TestFixture::destroyConfig(VAConfigID id)
}
VAContextID I965TestFixture::createContext(
- VAConfigID config, int w, int h, int flags, Surfaces& targets)
+ VAConfigID config, int w, int h, int flags, const Surfaces& targets)
{
VAContextID id = VA_INVALID_ID;
EXPECT_STATUS(
i965_CreateContext(
- *this, config, w, h, flags, targets.data(), targets.size(), &id));
+ *this, config, w, h, flags,
+ const_cast<VASurfaceID*>(targets.data()), targets.size(), &id));
EXPECT_ID(id);
return id;