Remove the Ati viewport hack.
This commit is contained in:
parent
2ff476a217
commit
5bf9b3cd02
1 changed files with 0 additions and 16 deletions
|
@ -405,17 +405,6 @@ static void upper_case_property(const char *name)
|
|||
p->addChangeListener(muc);
|
||||
}
|
||||
|
||||
// see http://code.google.com/p/flightgear-bugs/issues/detail?id=385
|
||||
// for the details of this.
|
||||
static void ATIScreenSizeHack()
|
||||
{
|
||||
osg::ref_ptr<osg::Camera> hackCam = new osg::Camera;
|
||||
hackCam->setRenderOrder(osg::Camera::PRE_RENDER);
|
||||
int prettyMuchAnyInt = 1;
|
||||
hackCam->setViewport(0, 0, prettyMuchAnyInt, prettyMuchAnyInt);
|
||||
globals->get_renderer()->addCamera(hackCam, false);
|
||||
}
|
||||
|
||||
// Propose NVIDIA Optimus to use high-end GPU
|
||||
#if defined(SG_WINDOWS)
|
||||
extern "C" {
|
||||
|
@ -545,11 +534,6 @@ int fgMainInit( int argc, char **argv )
|
|||
fntInit();
|
||||
fgSplashInit();
|
||||
|
||||
if (fgGetBool("/sim/ati-viewport-hack", true)) {
|
||||
SG_LOG(SG_GENERAL, SG_ALERT, "Enabling ATI viewport hack");
|
||||
ATIScreenSizeHack();
|
||||
}
|
||||
|
||||
fgOutputSettings();
|
||||
|
||||
//try to disable the screensaver
|
||||
|
|
Loading…
Reference in a new issue