From 065cfc77b3fd18b2636baa538e2ff5e0aa180f69 Mon Sep 17 00:00:00 2001 From: halx99 Date: Fri, 11 Sep 2020 01:46:12 +0800 Subject: [PATCH] Update CCRenderTexture.cpp --- cocos/2d/CCRenderTexture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos/2d/CCRenderTexture.cpp b/cocos/2d/CCRenderTexture.cpp index 53077529ed..14128f476e 100644 --- a/cocos/2d/CCRenderTexture.cpp +++ b/cocos/2d/CCRenderTexture.cpp @@ -479,7 +479,7 @@ void RenderTexture::newImage(std::function imageCallback, bool fli bool hasPremultipliedAlpha = _texture2D->hasPremultipliedAlpha(); _captureCommand.init((std::numeric_limits::max)()); - _captureCommand.src = RefPtr(static_cast(_texture2D->getBackendTexture())); + _captureCommand.src = RefPtr(_texture2D->getBackendTexture()); _captureCommand.func = [=](const backend::PixelBufferDescriptor& pbd) { if(pbd) { auto image = new(std::nothrow) Image();