Fix multi screen in a single window issue in Rembrandt
This commit is contained in:
parent
fad7181a2d
commit
115324af4f
1 changed files with 5 additions and 1 deletions
|
@ -196,7 +196,11 @@ void CameraInfo::updateCameras()
|
|||
for (CameraMap::iterator ii = cameras.begin(); ii != cameras.end(); ++ii ) {
|
||||
float f = ii->second.scaleFactor;
|
||||
if ( f == 0.0f ) continue;
|
||||
ii->second.camera->getViewport()->setViewport(x*f, y*f, width*f, height*f);
|
||||
|
||||
if (ii->second.camera->getRenderTargetImplementation() == osg::Camera::FRAME_BUFFER_OBJECT)
|
||||
ii->second.camera->getViewport()->setViewport(0, 0, width*f, height*f);
|
||||
else
|
||||
ii->second.camera->getViewport()->setViewport(x*f, y*f, width*f, height*f);
|
||||
}
|
||||
|
||||
for (RenderBufferMap::iterator ii = buffers.begin(); ii != buffers.end(); ++ii ) {
|
||||
|
|
Loading…
Add table
Reference in a new issue