Commit 471a56b6 authored by Rye Mutt's avatar Rye Mutt 🍞
Browse files

Fix a small shader unload bug

parent cfe1100a
...@@ -1301,7 +1301,7 @@ BOOL LLViewerShaderMgr::loadShadersDeferred() ...@@ -1301,7 +1301,7 @@ BOOL LLViewerShaderMgr::loadShadersDeferred()
gDeferredCoFProgram.unload(); gDeferredCoFProgram.unload();
gDeferredDoFCombineProgram.unload(); gDeferredDoFCombineProgram.unload();
gDeferredPostGammaCorrectProgram.unload(); gDeferredPostGammaCorrectProgram.unload();
for (auto i = 0; i < 3; ++i) for (auto i = 0; i < 4; ++i)
{ {
gFXAAProgram[i].unload(); gFXAAProgram[i].unload();
gPostSMAAEdgeDetect[i].unload(); gPostSMAAEdgeDetect[i].unload();
...@@ -2879,7 +2879,7 @@ BOOL LLViewerShaderMgr::loadShadersDeferred() ...@@ -2879,7 +2879,7 @@ BOOL LLViewerShaderMgr::loadShadersDeferred()
if (success) if (success)
{ {
gDeferredDoFCombineProgram.mName = "Deferred DoFCombine Shader"; gDeferredDoFCombineProgram.mName = "Deferred DoF Combine Shader";
gDeferredDoFCombineProgram.mFeatures.isDeferred = true; gDeferredDoFCombineProgram.mFeatures.isDeferred = true;
gDeferredDoFCombineProgram.mShaderFiles.clear(); gDeferredDoFCombineProgram.mShaderFiles.clear();
gDeferredDoFCombineProgram.mShaderFiles.push_back(make_pair("deferred/postDeferredNoTCV.glsl", GL_VERTEX_SHADER)); gDeferredDoFCombineProgram.mShaderFiles.push_back(make_pair("deferred/postDeferredNoTCV.glsl", GL_VERTEX_SHADER));
......
Supports Markdown
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