Added graphics context pointer to osg::Texture in prep for support for Pbuffer

Render To Texture.
This commit is contained in:
Robert Osfield
2005-08-31 12:56:15 +00:00
parent 8686ed3136
commit 7fc95ddae7
2 changed files with 19 additions and 2 deletions

View File

@@ -134,6 +134,10 @@ void Texture2D::apply(State& state) const
getModifiedCount(contextID) = _image->getModifiedCount();
}
else if (_readPBuffer.valid())
{
_readPBuffer->bindPBufferToTexture(GL_FRONT);
}
}
else if (_subloadCallback.valid())
@@ -221,6 +225,12 @@ void Texture2D::apply(State& state) const
_internalFormat,
GL_UNSIGNED_BYTE,
0);
if (_readPBuffer.valid())
{
_readPBuffer->bindPBufferToTexture(GL_FRONT);
}
}
else
{