Attempt to fix compile error caused by recent change in osg::Texture.

This commit is contained in:
Robert Osfield
2003-07-14 19:12:22 +00:00
parent 1b9d7d458a
commit ae2712c84b

View File

@@ -29,8 +29,8 @@ void MyRenderToTextureStage::draw(osg::State& state, osgUtil::RenderLeaf*& previ
{
// Create pbuffer texture
const unsigned int contextID = state.getContextID();
GLuint& handle = _texture->getTextureObject(contextID);
if (handle == 0)
osg::Texture::TextureObject* textureObeject = _texture->getTextureObject(contextID);
if (textureObeject == 0)
{
// Create dynamic texture, subload callback required.
_texture->apply(state);
@@ -57,7 +57,7 @@ void MyRenderToTextureStage::draw(osg::State& state, osgUtil::RenderLeaf*& previ
if (true /*_isRenderTextureSupported*/)
{
// transfer contents of p-buffer to texture
_pbuffer->bindTexImage(handle);
_pbuffer->bindTexImage(textureObject->_id);
}
else
{