From 3d116c3333bd635303d8a52ba42615758224a483 Mon Sep 17 00:00:00 2001 From: James Chen Date: Wed, 1 Jun 2016 17:46:27 +0800 Subject: [PATCH] SetBlending fix --- cocos/renderer/ccGLStateCache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos/renderer/ccGLStateCache.cpp b/cocos/renderer/ccGLStateCache.cpp index 477976db82..d801b7ac79 100644 --- a/cocos/renderer/ccGLStateCache.cpp +++ b/cocos/renderer/ccGLStateCache.cpp @@ -119,7 +119,7 @@ static void SetBlending(GLenum sfactor, GLenum dfactor) RenderState::StateBlock::_defaultState->setBlend(true); RenderState::StateBlock::_defaultState->setBlendSrc((RenderState::Blend)sfactor); - RenderState::StateBlock::_defaultState->setBlendSrc((RenderState::Blend)dfactor); + RenderState::StateBlock::_defaultState->setBlendDst((RenderState::Blend)dfactor); } }