mirror of https://github.com/axmolengine/axmol.git
fix android compile
This commit is contained in:
parent
1d0107c087
commit
73ad5c62d3
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue