mirror of https://github.com/axmolengine/axmol.git
fixed some loading problems.
This commit is contained in:
parent
84dcff2f7a
commit
5b59b8a987
|
@ -1467,6 +1467,14 @@ GLenum Bundle3D::parseGLType(const std::string& str)
|
|||
{
|
||||
return GL_FLOAT;
|
||||
}
|
||||
else if (str == "REPEAT")
|
||||
{
|
||||
return GL_REPEAT;
|
||||
}
|
||||
else if (str == "CLAMP")
|
||||
{
|
||||
return GL_CLAMP_TO_EDGE;
|
||||
}
|
||||
else
|
||||
{
|
||||
CCASSERT(false, "Wrong GL type");
|
||||
|
|
|
@ -179,7 +179,7 @@ bool Sprite3D::loadFromC3x_0_3(const std::string& path)
|
|||
|
||||
MaterialDatas materialdatas;
|
||||
ret = bundle->loadMaterials(materialdatas);
|
||||
if (ret)
|
||||
if (!ret)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue