Fixed typo of _texParametersDirty.

This commit is contained in:
Robert Osfield 2002-08-26 20:11:24 +00:00
parent 4ddfd8668e
commit 501f28449c
7 changed files with 17 additions and 17 deletions

View File

@ -109,7 +109,7 @@ class SG_EXPORT TextureBase : public osg::StateAttribute
/** Sets the border color for this texture. Makes difference only if
* wrap mode is CLAMP_TO_BORDER */
void setBorderColor(const Vec4& color) { _borderColor = color; _texParamtersDirty = true; }
void setBorderColor(const Vec4& color) { _borderColor = color; _texParametersDirty = true; }
const Vec4& borderColor(void) const { return _borderColor; }
@ -265,7 +265,7 @@ class SG_EXPORT TextureBase : public osg::StateAttribute
Vec4 _borderColor;
// true if apply tex parameters required.
mutable bool _texParamtersDirty;
mutable bool _texParametersDirty;
InternalFormatMode _internalFormatMode;

View File

@ -129,12 +129,12 @@ void Texture::apply(State& state) const
if (_subloadMode == OFF)
{
glBindTexture( GL_TEXTURE_2D, handle );
if (_texParamtersDirty) applyTexParameters(GL_TEXTURE_2D,state);
if (_texParametersDirty) applyTexParameters(GL_TEXTURE_2D,state);
}
else if (_image.valid() && _image->data())
{
glBindTexture( GL_TEXTURE_2D, handle );
if (_texParamtersDirty) applyTexParameters(GL_TEXTURE_2D,state);
if (_texParametersDirty) applyTexParameters(GL_TEXTURE_2D,state);
uint& modifiedTag = getModifiedTag(contextID);
if (_subloadMode == AUTO ||

View File

@ -96,7 +96,7 @@ void Texture1D::apply(State& state) const
{
glBindTexture( GL_TEXTURE_1D, handle );
if (_texParamtersDirty) applyTexParameters(GL_TEXTURE_1D,state);
if (_texParametersDirty) applyTexParameters(GL_TEXTURE_1D,state);
if (_subloadCallback.valid())
{

View File

@ -99,7 +99,7 @@ void Texture2D::apply(State& state) const
{
glBindTexture( GL_TEXTURE_2D, handle );
if (_texParamtersDirty) applyTexParameters(GL_TEXTURE_2D,state);
if (_texParametersDirty) applyTexParameters(GL_TEXTURE_2D,state);
if (_subloadCallback.valid())
{

View File

@ -117,7 +117,7 @@ void Texture3D::apply(State& state) const
{
glBindTexture( GL_TEXTURE_3D, handle );
if (_texParamtersDirty) applyTexParameters(GL_TEXTURE_3D,state);
if (_texParametersDirty) applyTexParameters(GL_TEXTURE_3D,state);
if (_subloadCallback.valid())
{

View File

@ -20,7 +20,7 @@ TextureBase::TextureBase():
_mag_filter(LINEAR),
_maxAnisotropy(1.0f),
_borderColor(0.0, 0.0, 0.0, 0.0),
_texParamtersDirty(true),
_texParametersDirty(true),
_internalFormatMode(USE_IMAGE_DATA_FORMAT),
_internalFormat(0)
{
@ -37,7 +37,7 @@ TextureBase::TextureBase(const TextureBase& text,const CopyOp& copyop):
_mag_filter(text._mag_filter),
_maxAnisotropy(text._maxAnisotropy),
_borderColor(text._borderColor),
_texParamtersDirty(false),
_texParametersDirty(false),
_internalFormatMode(text._internalFormatMode),
_internalFormat(text._internalFormat)
{
@ -70,9 +70,9 @@ void TextureBase::setWrap(const WrapParameter which, const WrapMode wrap)
{
switch( which )
{
case WRAP_S : _wrap_s = wrap; _texParamtersDirty = true; break;
case WRAP_T : _wrap_t = wrap; _texParamtersDirty = true; break;
case WRAP_R : _wrap_r = wrap; _texParamtersDirty = true; break;
case WRAP_S : _wrap_s = wrap; _texParametersDirty = true; break;
case WRAP_T : _wrap_t = wrap; _texParametersDirty = true; break;
case WRAP_R : _wrap_r = wrap; _texParametersDirty = true; break;
default : notify(WARN)<<"Error: invalid 'which' passed TextureBase::setWrap("<<(unsigned int)which<<","<<(unsigned int)wrap<<")"<<std::endl; break;
}
@ -95,8 +95,8 @@ void TextureBase::setFilter(const FilterParameter which, const FilterMode filter
{
switch( which )
{
case MIN_FILTER : _min_filter = filter; _texParamtersDirty = true; break;
case MAG_FILTER : _mag_filter = filter; _texParamtersDirty = true; break;
case MIN_FILTER : _min_filter = filter; _texParametersDirty = true; break;
case MAG_FILTER : _mag_filter = filter; _texParametersDirty = true; break;
default : notify(WARN)<<"Error: invalid 'which' passed TextureBase::setFilter("<<(unsigned int)which<<","<<(unsigned int)filter<<")"<<std::endl; break;
}
}
@ -117,7 +117,7 @@ void TextureBase::setMaxAnisotropy(float anis)
if (_maxAnisotropy!=anis)
{
_maxAnisotropy = anis;
_texParamtersDirty = true;
_texParametersDirty = true;
}
}
@ -302,7 +302,7 @@ void TextureBase::applyTexParameters(GLenum target, State&) const
}
_texParamtersDirty=false;
_texParametersDirty=false;
}

View File

@ -209,7 +209,7 @@ void TextureCubeMap::apply(State& state) const
if (handle != 0)
{
glBindTexture( GL_TEXTURE_CUBE_MAP, handle );
if (_texParamtersDirty) applyTexParameters(GL_TEXTURE_CUBE_MAP,state);
if (_texParametersDirty) applyTexParameters(GL_TEXTURE_CUBE_MAP,state);
if (_subloadCallback.valid())
{