Fixed indenting and typo

This commit is contained in:
Robert Osfield
2005-08-09 10:47:21 +00:00
parent 7cb6bbdfea
commit d48841f09b
2 changed files with 10 additions and 10 deletions

View File

@@ -682,9 +682,9 @@ void Texture::applyTexParameters(GLenum target, State& state) const
}
if (extensions->isShadowSupported() && target == GL_TEXTURE_2D)
{
{
if (_use_shadow_comparison)
{
{
glTexParameteri(target, GL_TEXTURE_COMPARE_MODE_ARB, GL_COMPARE_R_TO_TEXTURE_ARB);
glTexParameteri(target, GL_TEXTURE_COMPARE_FUNC_ARB, _shadow_compare_func);
glTexParameteri(target, GL_DEPTH_TEXTURE_MODE_ARB, _shadow_texture_mode);
@@ -692,15 +692,15 @@ void Texture::applyTexParameters(GLenum target, State& state) const
// if ambient value is 0 - it is default behaviour of GL_ARB_shadow
// no need for GL_ARB_shadow_ambient in this case
if (extensions->isShadowAmbientSupported() && _shadow_ambient > 0)
{
{
glTexParameterf(target, TEXTURE_COMPARE_FAIL_VALUE_ARB, _shadow_ambient);
}
}
}
}
else
{
{
glTexParameteri(target, GL_TEXTURE_COMPARE_MODE_ARB, GL_NONE);
}
}
}
}
getTextureParameterDirty(state.getContextID()) = false;

View File

@@ -130,7 +130,7 @@ void Texture2D::apply(State& state) const
applyTexImage2D_subload(state,GL_TEXTURE_2D,_image.get(),
_textureWidth, _textureHeight, _internalFormat, _numMipmapLevels);
// update the modified tag to show that it is upto date.
// update the modified tag to show that it is up to date.
getModifiedCount(contextID) = _image->getModifiedCount();
}
@@ -215,7 +215,7 @@ void Texture2D::apply(State& state) const
applyTexParameters(GL_TEXTURE_2D,state);
// no image present, but dimensions at set so less create the texture
// no image present, but dimensions at set so lets create the texture
glTexImage2D( GL_TEXTURE_2D, 0, _internalFormat,
_textureWidth, _textureHeight, _borderWidth,
_internalFormat,