1
0
Fork 0

Remove the Ati viewport hack.

This commit is contained in:
James Turner 2016-09-27 17:16:34 -05:00
parent 2ff476a217
commit 5bf9b3cd02

View file

@ -405,17 +405,6 @@ static void upper_case_property(const char *name)
p->addChangeListener(muc); 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 // Propose NVIDIA Optimus to use high-end GPU
#if defined(SG_WINDOWS) #if defined(SG_WINDOWS)
extern "C" { extern "C" {
@ -545,11 +534,6 @@ int fgMainInit( int argc, char **argv )
fntInit(); fntInit();
fgSplashInit(); fgSplashInit();
if (fgGetBool("/sim/ati-viewport-hack", true)) {
SG_LOG(SG_GENERAL, SG_ALERT, "Enabling ATI viewport hack");
ATIScreenSizeHack();
}
fgOutputSettings(); fgOutputSettings();
//try to disable the screensaver //try to disable the screensaver