From ae2712c84b0252ac3fceeea1038a64ee8814b297 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 14 Jul 2003 19:12:22 +0000 Subject: [PATCH] Attempt to fix compile error caused by recent change in osg::Texture. --- examples/osgpbuffer/RenderToTextureStage.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/osgpbuffer/RenderToTextureStage.cpp b/examples/osgpbuffer/RenderToTextureStage.cpp index e63c6bd41..638f8f9db 100644 --- a/examples/osgpbuffer/RenderToTextureStage.cpp +++ b/examples/osgpbuffer/RenderToTextureStage.cpp @@ -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 {