forked from mirror/openmw-tes3mp
Restrict the OS X cursor workaround to Intel graphics systems
This commit is contained in:
parent
9918b57341
commit
4a68ceaeb7
1 changed files with 6 additions and 4 deletions
|
@ -127,11 +127,13 @@ namespace
|
||||||
glViewport(0, 0, width, height);
|
glViewport(0, 0, width, height);
|
||||||
|
|
||||||
#if defined(__APPLE__)
|
#if defined(__APPLE__)
|
||||||
// FIXME: why are the extra flips needed on Mac? glReadPixels bug?
|
// Extra flip needed on Intel graphics OS X systems due to a driver bug
|
||||||
osg::ref_ptr<osg::Geometry> geom = osg::createTexturedQuadGeometry(osg::Vec3(-1,1,0), osg::Vec3(2,0,0), osg::Vec3(0,-2,0));
|
std::string vendorString = (const char*)glGetString(GL_VENDOR);
|
||||||
#else
|
if (vendorString.find("Intel") != std::string::npos)
|
||||||
osg::ref_ptr<osg::Geometry> geom = osg::createTexturedQuadGeometry(osg::Vec3(-1,-1,0), osg::Vec3(2,0,0), osg::Vec3(0,2,0));
|
osg::ref_ptr<osg::Geometry> geom = osg::createTexturedQuadGeometry(osg::Vec3(-1,1,0), osg::Vec3(2,0,0), osg::Vec3(0,-2,0));
|
||||||
|
else
|
||||||
#endif
|
#endif
|
||||||
|
osg::ref_ptr<osg::Geometry> geom = osg::createTexturedQuadGeometry(osg::Vec3(-1,-1,0), osg::Vec3(2,0,0), osg::Vec3(0,2,0));
|
||||||
|
|
||||||
geom->drawImplementation(renderInfo);
|
geom->drawImplementation(renderInfo);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue