diff options
Diffstat (limited to 'tests/ImageTest.cpp')
-rw-r--r-- | tests/ImageTest.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/ImageTest.cpp b/tests/ImageTest.cpp index 83ff47c256..6cc0fee4d9 100644 --- a/tests/ImageTest.cpp +++ b/tests/ImageTest.cpp @@ -894,12 +894,11 @@ static void test_cross_context_image(skiatest::Reporter* reporter, const GrConte proxy.reset(nullptr); proxySecondRef.reset(nullptr); - // Now we should still fail to be able to borrow the texture from the other context - // since only one context can ever borrow + // Now we should be able to borrow the texture from the other context 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); |