diff options
author | jvanverth <jvanverth@google.com> | 2015-07-15 10:16:56 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-07-15 10:16:56 -0700 |
commit | eeb8d99b4e58eb95cad3f7cd5438b9c2b3db7141 (patch) | |
tree | 2034e6926dd76c5483ced8f04bfda10897f28b72 /tests | |
parent | b4d40ef72432429d22c6be2e228b7f73e5c3a91d (diff) |
Only run test_wrapped_resources() when GL is active
Review URL: https://codereview.chromium.org/1234233002
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ResourceCacheTest.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/ResourceCacheTest.cpp b/tests/ResourceCacheTest.cpp index 0b7cb10fa3..7e7824a540 100644 --- a/tests/ResourceCacheTest.cpp +++ b/tests/ResourceCacheTest.cpp @@ -176,7 +176,8 @@ static void test_stencil_buffers(skiatest::Reporter* reporter, GrContext* contex static void test_wrapped_resources(skiatest::Reporter* reporter, GrContext* context) { const GrGpu* gpu = context->getGpu(); - if (!gpu) { + // this test is only valid for GL + if (!gpu || !gpu->glContextForTesting()) { return; } |