mirror of https://github.com/axmolengine/axmol.git
Merge pull request #5219 from dabingnn/develop_hotFix
3.0 Beta2 HotFix: fix shader PositionTextureColorAlphaTest
This commit is contained in:
commit
7a8f24a313
|
@ -290,7 +290,7 @@ void ShaderCache::loadDefaultShader(GLProgram *p, int type)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case kShaderType_PositionTextureColorAlphaTest:
|
case kShaderType_PositionTextureColorAlphaTest:
|
||||||
p->initWithVertexShaderByteArray(ccPositionTextureColor_noMVP_vert, ccPositionTextureColorAlphaTest_frag);
|
p->initWithVertexShaderByteArray(ccPositionTextureColor_vert, ccPositionTextureColorAlphaTest_frag);
|
||||||
|
|
||||||
p->addAttribute(GLProgram::ATTRIBUTE_NAME_POSITION, GLProgram::VERTEX_ATTRIB_POSITION);
|
p->addAttribute(GLProgram::ATTRIBUTE_NAME_POSITION, GLProgram::VERTEX_ATTRIB_POSITION);
|
||||||
p->addAttribute(GLProgram::ATTRIBUTE_NAME_COLOR, GLProgram::VERTEX_ATTRIB_COLOR);
|
p->addAttribute(GLProgram::ATTRIBUTE_NAME_COLOR, GLProgram::VERTEX_ATTRIB_COLOR);
|
||||||
|
|
Loading…
Reference in New Issue