Commit 846dd4bc authored by Mathias Goldau's avatar Mathias Goldau
Browse files

[CHANGE] As Apple won't let me install newer graphics Drivers manually I...

[CHANGE] As Apple won't let me install newer graphics Drivers manually I cannot upgrade my OpenGL and hence I need to disable some functionallity within our Offscreen rendering pipeline
parent f934dcaf
......@@ -145,6 +145,10 @@ osg::ref_ptr< osg::Texture2D > WGEOffscreenRenderPass::createTexture( GLint inte
tex->setSourceType( GL_FLOAT );
tex->setSourceFormat( GL_RED );
break;
// On older MAC books pro, the opengl cannot be upgraded even when its running under under OS 10.8, hence
// I will disable this.
#ifndef __APPLE__
case GL_RGB16F:
tex->setSourceType( GL_HALF_FLOAT );
tex->setSourceFormat( GL_RGB );
......@@ -161,8 +165,11 @@ osg::ref_ptr< osg::Texture2D > WGEOffscreenRenderPass::createTexture( GLint inte
tex->setSourceType( GL_FLOAT );
tex->setSourceFormat( GL_RGBA );
break;
#endif
default:
// keep default format and type
wlog::warn( "WGEOffscreenRenderPass" ) << "Unsupported OpenGL internal format used, this is not available on your platform: " << internalFormat;
break;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment