change tex param

This commit is contained in:
yangxiao 2014-08-18 11:42:41 +08:00
parent cd4da73beb
commit 219404bd7d
1 changed files with 2 additions and 2 deletions

View File

@ -288,8 +288,8 @@ bool Bundle3D::loadObj(MeshDatas& meshdatas, MaterialDatas& materialdatas, NodeD
NTextureData tex;
tex.filename = dir + it.material.diffuse_texname;
tex.type = NTextureData::Usage::Diffuse;
tex.wrapS = GL_CLAMP;
tex.wrapT = GL_CLAMP;
tex.wrapS = GL_CLAMP_TO_EDGE;
tex.wrapT = GL_CLAMP_TO_EDGE;
sprintf(str, "%d", i++);
materialdata.textures.push_back(tex);