Revert "BindingTextureImage: a more complex condition for _texture->apply ?"
This commit is contained in:
committed by
GitHub
parent
db5e803439
commit
6d1d1bb000
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user