From cd7b0759007e0dfd7e54eb7f7e4c48c826128b80 Mon Sep 17 00:00:00 2001 From: "Huabing.Xu" Date: Thu, 27 Feb 2014 09:27:33 +0800 Subject: [PATCH] closed #3874: fix bug, blendID should be shifted by 50 bits --- cocos/2d/renderer/CCQuadCommand.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos/2d/renderer/CCQuadCommand.cpp b/cocos/2d/renderer/CCQuadCommand.cpp index ac72a3524f..edc8ee64df 100644 --- a/cocos/2d/renderer/CCQuadCommand.cpp +++ b/cocos/2d/renderer/CCQuadCommand.cpp @@ -97,7 +97,7 @@ void QuadCommand::generateMaterialID() // +---------------------+-------------------+----------------------------------------+ _materialID = (uint64_t)_shader->getProgram() << 54 - | (uint64_t)blendID << 40 + | (uint64_t)blendID << 50 | (uint64_t)_textureID << 0; }