mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-03 23:26:40 +00:00 
			
		
		
		
	Merge pull request #733 from corristo/fix-build
OS X cursor workaround build fix
This commit is contained in:
		
						commit
						ba79d31929
					
				
					 1 changed files with 4 additions and 2 deletions
				
			
		| 
						 | 
					@ -126,14 +126,16 @@ namespace
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        glViewport(0, 0, width, height);
 | 
					        glViewport(0, 0, width, height);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        osg::ref_ptr<osg::Geometry> geom;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if defined(__APPLE__)
 | 
					#if defined(__APPLE__)
 | 
				
			||||||
        // Extra flip needed on Intel graphics OS X systems due to a driver bug
 | 
					        // Extra flip needed on Intel graphics OS X systems due to a driver bug
 | 
				
			||||||
        std::string vendorString = (const char*)glGetString(GL_VENDOR);
 | 
					        std::string vendorString = (const char*)glGetString(GL_VENDOR);
 | 
				
			||||||
        if (vendorString.find("Intel") != std::string::npos)
 | 
					        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));
 | 
					            geom = osg::createTexturedQuadGeometry(osg::Vec3(-1,1,0), osg::Vec3(2,0,0), osg::Vec3(0,-2,0));
 | 
				
			||||||
        else
 | 
					        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 = 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