Index: src/gpu/vk/GrVkResourceProvider.cpp |
diff --git a/src/gpu/vk/GrVkResourceProvider.cpp b/src/gpu/vk/GrVkResourceProvider.cpp |
index ae333bc69e7f9132cedf1cf70c5a29abe5681445..619d6964418e392164a1c9e8da0d420f92be718c 100644 |
--- a/src/gpu/vk/GrVkResourceProvider.cpp |
+++ b/src/gpu/vk/GrVkResourceProvider.cpp |
@@ -10,6 +10,7 @@ |
#include "GrTextureParams.h" |
#include "GrVkCommandBuffer.h" |
#include "GrVkPipeline.h" |
+#include "GrVkRenderTarget.h" |
#include "GrVkSampler.h" |
#include "GrVkUtil.h" |
@@ -139,10 +140,17 @@ const GrVkRenderPass* GrVkResourceProvider::findRenderPass( |
const GrVkRenderPass::LoadStoreOps& resolveOps, |
const GrVkRenderPass::LoadStoreOps& stencilOps, |
CompatibleRPHandle* compatibleHandle) { |
+ GrVkResourceProvider::CompatibleRPHandle tempRPHandle; |
+ GrVkResourceProvider::CompatibleRPHandle* pRPHandle = &tempRPHandle; |
jvanverth1
2016/06/06 20:47:43
Probably not much difference in assembly, but I su
egdaniel
2016/06/07 15:22:37
Done.
|
+ if (compatibleHandle) { |
+ pRPHandle = compatibleHandle; |
+ } |
+ *pRPHandle = target.compatibleRenderPassHandle(); |
+ |
// This will get us the handle to (and possible create) the compatible set for the specific |
// GrVkRenderPass we are looking for. |
this->findCompatibleRenderPass(target, compatibleHandle); |
- return this->findRenderPass(*compatibleHandle, colorOps, resolveOps, stencilOps); |
+ return this->findRenderPass(*pRPHandle, colorOps, resolveOps, stencilOps); |
} |
const GrVkRenderPass* |