Revert "BindingTextureImage: a more complex condition for _texture->apply ?"

This commit is contained in:
OpenSceneGraph git repository
2018-02-02 09:54:31 +00:00
committed by GitHub
parent db5e803439
commit 6d1d1bb000
3 changed files with 5 additions and 9 deletions

View File

@@ -19,9 +19,8 @@ void BindImageTexture::apply(osg::State&state) const
{
if(_target.valid())
{
Texture::TextureObject *to = _target->getTextureObject( state.getContextID() );
GLBufferObject *globj = _target->getBufferData()->getBufferObject()->getGLBufferObject( state.getContextID() );
if( !globj || globj->isDirty() )
osg::Texture::TextureObject *to = _target->getTextureObject( state.getContextID() );
if( !to )
{
// _target never been applied yet
_target->apply(state);