From 608520d932bbe81a5916d50dadeef364e1d82140 Mon Sep 17 00:00:00 2001 From: Frederic Bouvier Date: Sat, 16 Jun 2012 17:20:56 +0200 Subject: [PATCH] Don't invalidate Rembrandt buffers when the window is iconified --- src/Viewer/CameraGroup.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Viewer/CameraGroup.cxx b/src/Viewer/CameraGroup.cxx index 0503c459a..7603287f8 100644 --- a/src/Viewer/CameraGroup.cxx +++ b/src/Viewer/CameraGroup.cxx @@ -216,6 +216,9 @@ void CameraInfo::updateCameras() void CameraInfo::resized(double w, double h) { + if (w == 1.0 && h == 1.0) + return; + bufferSize->set( osg::Vec2f( w, h ) ); for (RenderBufferMap::iterator ii = buffers.begin(); ii != buffers.end(); ++ii) {