Only run test_wrapped_resources() when GL is active

Review URL: https://codereview.chromium.org/1234233002
This commit is contained in:
jvanverth 2015-07-15 10:16:56 -07:00 committed by Commit bot
parent b4d40ef724
commit eeb8d99b4e

View File

@ -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;
}