NORSPEC-142 Fix for unusable performance on GTX 285

meow-7.2.2
Dave Parks 2013-04-23 12:50:47 -05:00
parent 3d7c100062
commit 95672cabb9
1 changed files with 5 additions and 0 deletions

View File

@ -917,6 +917,11 @@ bool LLPipeline::allocateScreenBuffer(U32 resX, U32 resY, U32 samples)
{
screenFormat = GL_RGBA12;
}
if (gGLManager.mGLVersion < 4.f && gGLManager.mIsNVIDIA)
{
screenFormat = GL_RGBA16F_ARB;
}
if (!mScreen.allocate(resX, resY, screenFormat, FALSE, FALSE, LLTexUnit::TT_RECT_TEXTURE, FALSE, samples)) return false;
if (samples > 0)