diff options
Diffstat (limited to 'tools/sk_app')
-rw-r--r-- | tools/sk_app/VulkanWindowContext.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tools/sk_app/VulkanWindowContext.cpp b/tools/sk_app/VulkanWindowContext.cpp index d7839bc189..b39c564eca 100644 --- a/tools/sk_app/VulkanWindowContext.cpp +++ b/tools/sk_app/VulkanWindowContext.cpp @@ -293,14 +293,14 @@ void VulkanWindowContext::createBuffers(VkFormat format, SkColorType colorType) info.fFormat = format; info.fLevelCount = 1; - GrBackendTexture backendTex(fWidth, fHeight, info); - - fSurfaces[i] = SkSurface::MakeFromBackendTextureAsRenderTarget(fContext.get(), backendTex, - kTopLeft_GrSurfaceOrigin, - fSampleCount, - colorType, - fDisplayParams.fColorSpace, - &fSurfaceProps); + GrBackendRenderTarget backendRT(fWidth, fHeight, fSampleCount, info); + + fSurfaces[i] = SkSurface::MakeFromBackendRenderTarget(fContext.get(), + backendRT, + kTopLeft_GrSurfaceOrigin, + colorType, + fDisplayParams.fColorSpace, + &fSurfaceProps); } // create the command pool for the command buffers |