diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ImageTest.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/ImageTest.cpp b/tests/ImageTest.cpp index ffccb85e45..078bd7c1bd 100644 --- a/tests/ImageTest.cpp +++ b/tests/ImageTest.cpp @@ -893,11 +893,12 @@ static void test_cross_context_image(skiatest::Reporter* reporter, const GrConte proxy.reset(nullptr); proxySecondRef.reset(nullptr); - // Now we should be able to borrow the texture from the other context + // Now we should still fail to be able to borrow the texture from the other context + // since only one context can ever borrow otherTestContext->makeCurrent(); otherProxy = as_IB(refImg)->asTextureProxyRef(otherCtx, GrSamplerState::ClampNearest(), nullptr, &texColorSpace, nullptr); - REPORTER_ASSERT(reporter, otherProxy); + REPORTER_ASSERT(reporter, !otherProxy); // Release everything otherProxy.reset(nullptr); |