mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 23:24:41 +00:00
init commit
This commit is contained in:
parent
ae108d0411
commit
e325902bac
6 changed files with 11 additions and 5 deletions
|
|
@ -93,7 +93,7 @@ void GFXGLEnumTranslate::init()
|
|||
GFXGLTextureAddress[GFXAddressWrap] = GL_REPEAT;
|
||||
GFXGLTextureAddress[GFXAddressMirror] = GL_REPEAT;
|
||||
GFXGLTextureAddress[GFXAddressClamp] = GL_CLAMP_TO_EDGE;
|
||||
GFXGLTextureAddress[GFXAddressBorder] = GL_REPEAT;
|
||||
GFXGLTextureAddress[GFXAddressBorder] = GL_CLAMP_TO_BORDER;
|
||||
GFXGLTextureAddress[GFXAddressMirrorOnce] = GL_REPEAT;
|
||||
|
||||
// Stencil ops
|
||||
|
|
|
|||
|
|
@ -220,6 +220,7 @@ void GFXGLTextureObject::initSamplerState(const GFXSamplerStateDesc &ssd)
|
|||
if(static_cast< GFXGLDevice* >( GFX )->supportsAnisotropic() )
|
||||
glTexParameterf(mBinding, GL_TEXTURE_MAX_ANISOTROPY_EXT, ssd.maxAnisotropy);
|
||||
|
||||
glTexParameterfv(mBinding, GL_TEXTURE_BORDER_COLOR, ssd.borderColor);
|
||||
mNeedInitSamplerState = false;
|
||||
mSampler = ssd;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue