Added handling of image dirty after a textyre has been bound, the texture

is now updated when the image is dirty.
This commit is contained in:
Robert Osfield
2002-11-19 12:48:58 +00:00
parent 4ae3e5c6bc
commit f46b231305
3 changed files with 17 additions and 3 deletions

View File

@@ -108,6 +108,10 @@ void Texture3D::apply(State& state) const
{
_subloadCallback->subload(*this,state);
}
else if(getModifiedTag(contextID) != _image->getModifiedTag())
{
applyTexImage3D(GL_TEXTURE_3D,_image.get(),state, _textureWidth, _textureHeight, _textureDepth,_numMimpmapLevels);
}
}
else if (_subloadCallback.valid())