[Orxonox-commit 3734] r8414 - code/trunk/src/modules/designtools
dafrick at orxonox.net
dafrick at orxonox.net
Sat May 7 23:19:45 CEST 2011
Author: dafrick
Date: 2011-05-07 23:19:45 +0200 (Sat, 07 May 2011)
New Revision: 8414
Modified:
code/trunk/src/modules/designtools/ScreenshotManager.cc
Log:
ScreenshotManager with gridSize = 1 works again.
Modified: code/trunk/src/modules/designtools/ScreenshotManager.cc
===================================================================
--- code/trunk/src/modules/designtools/ScreenshotManager.cc 2011-05-07 18:43:37 UTC (rev 8413)
+++ code/trunk/src/modules/designtools/ScreenshotManager.cc 2011-05-07 21:19:45 UTC (rev 8414)
@@ -215,7 +215,8 @@
// Simple case where the contents of the screen are taken directly
// Also used when an invalid value is passed within gridSize (zero or negative grid size)
this->renderTarget_->update(); // Render
-
+
+ this->buffer_->blitToMemory(*this->finalPicturePB_);
finalImage->loadDynamicImage(static_cast<unsigned char*>(finalPicturePB_->data), finalPicturePB_->getWidth(), finalPicturePB_->getHeight(),Ogre::PF_B8G8R8);
}
else
More information about the Orxonox-commit
mailing list