Index: src/gpu/vk/GrVkRenderTarget.cpp |
diff --git a/src/gpu/vk/GrVkRenderTarget.cpp b/src/gpu/vk/GrVkRenderTarget.cpp |
index 6d95ba0d00a294daa9bb30a811da0e2982986455..d6895d25fc757817bb9b6cdae22ef11b148e4c10 100644 |
--- a/src/gpu/vk/GrVkRenderTarget.cpp |
+++ b/src/gpu/vk/GrVkRenderTarget.cpp |
@@ -353,8 +353,10 @@ void GrVkRenderTarget::onAbandon() { |
GrBackendObject GrVkRenderTarget::getRenderTargetHandle() const { |
- // Currently just passing back the pointer to the main Image::Resource as the handle |
- return (GrBackendObject)&fResource; |
+ // If the render target is multisampled, we currently return the ImageInfo for the resolved |
+ // image. If we only wrap the msaa target (currently not implemented) we should return a handle |
+ // to that instead. |
+ return (GrBackendObject)&fInfo; |
} |
const GrVkResource* GrVkRenderTarget::stencilImageResource() const { |