fix android compile

This commit is contained in:
patricejiang 2019-03-13 11:16:03 +08:00
parent 1d0107c087
commit 73ad5c62d3
No known key found for this signature in database
GPG Key ID: 301C66D10A4E92C3
1 changed files with 4 additions and 4 deletions

View File

@ -2157,10 +2157,10 @@ void Sprite3DCubeMapTest::addNewSpriteWithCoords(Vec2 p)
_textureCube->retain();
//set texture parameters
Texture2D::TexParams tRepeatParams;
tRepeatParams.magFilter = backend::SamplerFilter::LINEAR;
tRepeatParams.minFilter = backend::SamplerFilter::LINEAR;
tRepeatParams.wrapS = backend::SamplerAddressMode::CLAMP_TO_EDGE;
tRepeatParams.wrapT = backend::SamplerAddressMode::CLAMP_TO_EDGE;
tRepeatParams.magFilter = backend::SamplerFilter::LINEAR;
tRepeatParams.minFilter = backend::SamplerFilter::LINEAR;
tRepeatParams.sAddressMode = backend::SamplerAddressMode::CLAMP_TO_EDGE;
tRepeatParams.tAddressMode = backend::SamplerAddressMode::CLAMP_TO_EDGE;
_textureCube->setTexParameters(tRepeatParams);
auto mat = Sprite3DMaterial::createWithFilename("Sprite3DTest/CubeMap.material");