Commits

rob...@16af8721-9629-0410-8352-f15c8da7e697  committed 2650843 Draft

Added FireGL to prefernce list for use glGenerateMipMap

  • Participants
  • Parent commits d1d15df

Comments (0)

Files changed (1)

File src/osg/Texture.cpp

     std::string rendererString(renderer ? renderer : "");
 
     bool radeonHardwareDetected = (rendererString.find("Radeon")!=std::string::npos || rendererString.find("RADEON")!=std::string::npos);
+    bool fireGLHardwareDetected = (rendererString.find("FireGL")!=std::string::npos || rendererString.find("FIREGL")!=std::string::npos);
 
     bool builtInSupport = OSG_GLES2_FEATURES || OSG_GL3_FEATURES;
 
 
     _isGenerateMipMapSupported = builtInSupport || isGLExtensionOrVersionSupported(contextID,"GL_SGIS_generate_mipmap", 1.4f);
 
-    _preferGenerateMipmapSGISForPowerOfTwo = radeonHardwareDetected ? false : true;
+    _preferGenerateMipmapSGISForPowerOfTwo = (radeonHardwareDetected||fireGLHardwareDetected) ? false : true;
 
     _isTextureMultisampledSupported = isGLExtensionSupported(contextID,"GL_ARB_texture_multisample");