From dd9dc85d40eb95bfc3e8268136f4a7323b2d3ae5 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 29 Feb 2008 16:09:48 +0000 Subject: [PATCH] Disabled the resizing of Camera's with FBO's --- src/osg/GraphicsContext.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/osg/GraphicsContext.cpp b/src/osg/GraphicsContext.cpp index 79cf290d6..86ad0e8b8 100644 --- a/src/osg/GraphicsContext.cpp +++ b/src/osg/GraphicsContext.cpp @@ -771,6 +771,10 @@ void GraphicsContext::resizedImplementation(int x, int y, int width, int height) ++itr) { Camera* camera = (*itr); + + // resize doesn't affect Cameras set up with FBO's. + if (camera->getRenderTargetImplementation()==osg::Camera::FRAME_BUFFER_OBJECT) continue; + Viewport* viewport = camera->getViewport(); if (viewport) {