diff --git a/src/tests/end2end/BufferZeroInitTests.cpp b/src/tests/end2end/BufferZeroInitTests.cpp index 52d172f29f..fa09f2102c 100644 --- a/src/tests/end2end/BufferZeroInitTests.cpp +++ b/src/tests/end2end/BufferZeroInitTests.cpp @@ -312,7 +312,8 @@ TEST_P(BufferZeroInitTest, MapReadAsync) { constexpr uint64_t kSize = 8u; EXPECT_LAZY_CLEAR(1u, MapAsyncAndWait(buffer, kMapMode, kOffset, kSize)); - const uint32_t* mappedDataUint = static_cast(buffer.GetConstMappedRange()); + const uint32_t* mappedDataUint = + static_cast(buffer.GetConstMappedRange(kOffset)); for (uint32_t i = 0; i < kSize / sizeof(uint32_t); ++i) { EXPECT_EQ(0u, mappedDataUint[i]); }