From: Frederic Bouvier Date: Thu, 12 Apr 2012 21:59:42 +0000 (+0200) Subject: Get rid of RG16 buffer made possible by a different way to encode normals X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0a1417e06d37b49ab011ac84dd6ffd02d9834bde;p=flightgear.git Get rid of RG16 buffer made possible by a different way to encode normals --- diff --git a/src/Main/renderer.cxx b/src/Main/renderer.cxx index 1c6e77bbb..36b0a1dbd 100644 --- a/src/Main/renderer.cxx +++ b/src/Main/renderer.cxx @@ -732,7 +732,7 @@ osg::Texture2D* buildDeferredBuffer(GLint internalFormat, GLenum sourceFormat, G void buildDeferredBuffers( flightgear::CameraInfo* info, int shadowMapSize, bool normal16 ) { info->addBuffer(flightgear::RenderBufferInfo::DEPTH_BUFFER, buildDeferredBuffer( GL_DEPTH_COMPONENT32, GL_DEPTH_COMPONENT, GL_FLOAT, osg::Texture::CLAMP_TO_BORDER) ); - if (normal16) + if (false) info->addBuffer(flightgear::RenderBufferInfo::NORMAL_BUFFER, buildDeferredBuffer( 0x822C /*GL_RG16*/, 0x8227 /*GL_RG*/, GL_UNSIGNED_SHORT, osg::Texture::CLAMP_TO_BORDER) ); else info->addBuffer(flightgear::RenderBufferInfo::NORMAL_BUFFER, buildDeferredBuffer( GL_RGBA8, GL_RGBA, GL_UNSIGNED_SHORT, osg::Texture::CLAMP_TO_BORDER) );