diff options
Diffstat (limited to 'tests/TransferPixelsTest.cpp')
-rwxr-xr-x | tests/TransferPixelsTest.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/TransferPixelsTest.cpp b/tests/TransferPixelsTest.cpp index 722707ae9b..b59495f0f5 100755 --- a/tests/TransferPixelsTest.cpp +++ b/tests/TransferPixelsTest.cpp @@ -64,6 +64,10 @@ bool does_full_buffer_contain_correct_values(GrColor* srcBuffer, void basic_transfer_test(skiatest::Reporter* reporter, GrContext* context, GrPixelConfig config, GrSurfaceOrigin origin, bool renderTarget) { + if (GrCaps::kNone_MapFlags == context->caps()->mapBufferFlags()) { + return; + } + // set up the data const int kTextureWidth = 16; const int kTextureHeight = 16; |