diff options
author | Graham Madarasz (Graham Linden) <graham@lindenlab.com> | 2013-04-02 09:45:31 -0700 |
---|---|---|
committer | Graham Madarasz (Graham Linden) <graham@lindenlab.com> | 2013-04-02 09:45:31 -0700 |
commit | 38ad100a83c7fce40cb6e5b111ad424ee288c88e (patch) | |
tree | 64e40c76586575035d6371cbebe36c39c45ebae2 /indra | |
parent | a1a6699684d3f80bd0c3fbb9e845ac9ff0986cec (diff) |
NORSPEC-73 mac crash on startup with RenderDebugGL on due to false alarm from cubemap unbind
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/lldrawpoolbump.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/indra/newview/lldrawpoolbump.cpp b/indra/newview/lldrawpoolbump.cpp index 1b0b11298c..8d1db7b9ad 100644 --- a/indra/newview/lldrawpoolbump.cpp +++ b/indra/newview/lldrawpoolbump.cpp @@ -449,9 +449,6 @@ void LLDrawPoolBump::unbindCubeMap(LLGLSLShader* shader, S32 shader_level, S32& LLCubeMap* cube_map = gSky.mVOSkyp ? gSky.mVOSkyp->getCubeMap() : NULL; if( cube_map ) { - cube_map->disable(); - cube_map->restoreMatrix(); - if (!invisible && shader_level > 1) { shader->disableTexture(LLViewerShaderMgr::ENVIRONMENT_MAP, LLTexUnit::TT_CUBE_MAP); @@ -464,6 +461,8 @@ void LLDrawPoolBump::unbindCubeMap(LLGLSLShader* shader, S32 shader_level, S32& } } } + cube_map->disable(); + cube_map->restoreMatrix(); } if (!LLGLSLShader::sNoFixedFunction) |