From 219404bd7d2f18810ce4c4832b278e5030d28fc0 Mon Sep 17 00:00:00 2001 From: yangxiao Date: Mon, 18 Aug 2014 11:42:41 +0800 Subject: [PATCH] change tex param --- cocos/3d/CCBundle3D.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cocos/3d/CCBundle3D.cpp b/cocos/3d/CCBundle3D.cpp index 224eacd70f..1f72d02184 100644 --- a/cocos/3d/CCBundle3D.cpp +++ b/cocos/3d/CCBundle3D.cpp @@ -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);