mirror of https://github.com/axmolengine/axmol.git
fix normal flag check error
This commit is contained in:
parent
fd35d43510
commit
c335df1071
|
@ -354,7 +354,7 @@ void MeshCommand::setLightUniforms()
|
||||||
int maxPointLight = conf->getMaxSupportPointLightInShader();
|
int maxPointLight = conf->getMaxSupportPointLightInShader();
|
||||||
int maxSpotLight = conf->getMaxSupportSpotLightInShader();
|
int maxSpotLight = conf->getMaxSupportSpotLightInShader();
|
||||||
auto &lights = scene->getLights();
|
auto &lights = scene->getLights();
|
||||||
if (_glProgramState->getVertexAttribsFlags() & GLProgram::VERTEX_ATTRIB_NORMAL)
|
if (_glProgramState->getVertexAttribsFlags() & (1 << GLProgram::VERTEX_ATTRIB_NORMAL))
|
||||||
{
|
{
|
||||||
GLint enabledDirLightNum = 0;
|
GLint enabledDirLightNum = 0;
|
||||||
GLint enabledPointLightNum = 0;
|
GLint enabledPointLightNum = 0;
|
||||||
|
|
Loading…
Reference in New Issue