Skip to content
Snippets Groups Projects
Commit 089f8eb0 authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Use RGBA16 as screen format when GL version is 4.0 or above

parent 5750546b
No related branches found
No related tags found
No related merge requests found
...@@ -956,7 +956,7 @@ bool LLPipeline::allocateScreenBuffer(U32 resX, U32 resY, U32 samples) ...@@ -956,7 +956,7 @@ bool LLPipeline::allocateScreenBuffer(U32 resX, U32 resY, U32 samples)
if (!addDeferredAttachments(mDeferredScreen)) return false; if (!addDeferredAttachments(mDeferredScreen)) return false;
GLuint screenFormat = GL_RGBA16; GLuint screenFormat = GL_RGBA16;
if (gGLManager.mIsATI) if (gGLManager.mGLVersion < 4.f && gGLManager.mIsATI)
{ {
screenFormat = GL_RGBA12; screenFormat = GL_RGBA12;
} }
...@@ -965,7 +965,7 @@ bool LLPipeline::allocateScreenBuffer(U32 resX, U32 resY, U32 samples) ...@@ -965,7 +965,7 @@ bool LLPipeline::allocateScreenBuffer(U32 resX, U32 resY, U32 samples)
{ {
screenFormat = GL_RGBA16F; screenFormat = GL_RGBA16F;
} }
if (!mScreen.allocate(resX, resY, screenFormat, FALSE, FALSE, LLTexUnit::TT_RECT_TEXTURE, FALSE, samples)) return false; if (!mScreen.allocate(resX, resY, screenFormat, FALSE, FALSE, LLTexUnit::TT_RECT_TEXTURE, FALSE, samples)) return false;
if (samples > 0) if (samples > 0)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment