diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/VkWrapTests.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/VkWrapTests.cpp b/tests/VkWrapTests.cpp index fc19bb33ef..c2edae41ff 100644 --- a/tests/VkWrapTests.cpp +++ b/tests/VkWrapTests.cpp @@ -61,6 +61,7 @@ void wrap_tex_test(skiatest::Reporter* reporter, GrContext* context) { // alloc is null backendCopy.fImage = imageInfo->fImage; backendCopy.fAlloc = { VK_NULL_HANDLE, 0, 0, 0 }; + backendTex = GrBackendTexture(kW, kH, backendCopy); tex = gpu->wrapBackendTexture(backendTex, kTopLeft_GrSurfaceOrigin, kNone_GrBackendTextureFlag, @@ -75,6 +76,7 @@ void wrap_tex_test(skiatest::Reporter* reporter, GrContext* context) { REPORTER_ASSERT(reporter, !tex); // check adopt creation backendCopy.fAlloc = imageInfo->fAlloc; + backendTex = GrBackendTexture(kW, kH, backendCopy); tex = gpu->wrapBackendTexture(backendTex, kTopLeft_GrSurfaceOrigin, kNone_GrBackendTextureFlag, @@ -153,6 +155,7 @@ void wrap_trt_test(skiatest::Reporter* reporter, GrContext* context) { // alloc is null backendCopy.fImage = imageInfo->fImage; backendCopy.fAlloc = { VK_NULL_HANDLE, 0, 0, 0 }; + backendTex = GrBackendTexture(kW, kH, backendCopy); tex = gpu->wrapBackendTexture(backendTex, kTopLeft_GrSurfaceOrigin, kRenderTarget_GrBackendTextureFlag, @@ -168,6 +171,7 @@ void wrap_trt_test(skiatest::Reporter* reporter, GrContext* context) { // check adopt creation backendCopy.fAlloc = imageInfo->fAlloc; + backendTex = GrBackendTexture(kW, kH, backendCopy); tex = gpu->wrapBackendTexture(backendTex, kTopLeft_GrSurfaceOrigin, kRenderTarget_GrBackendTextureFlag, |