fixed some loading problems.

This commit is contained in:
lvlong 2014-08-16 15:40:00 +08:00
parent 84dcff2f7a
commit 5b59b8a987
2 changed files with 9 additions and 1 deletions

View File

@ -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");

View File

@ -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;
}