aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar jvanverth <jvanverth@google.com>2015-07-15 10:16:56 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-07-15 10:16:56 -0700
commiteeb8d99b4e58eb95cad3f7cd5438b9c2b3db7141 (patch)
tree2034e6926dd76c5483ced8f04bfda10897f28b72 /tests
parentb4d40ef72432429d22c6be2e228b7f73e5c3a91d (diff)
Only run test_wrapped_resources() when GL is active
Diffstat (limited to 'tests')
-rw-r--r--tests/ResourceCacheTest.cpp3
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;
}