diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/lldrawpoolwater.cpp | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/linden/indra/newview/lldrawpoolwater.cpp b/linden/indra/newview/lldrawpoolwater.cpp index dde2193..e796d56 100644 --- a/linden/indra/newview/lldrawpoolwater.cpp +++ b/linden/indra/newview/lldrawpoolwater.cpp | |||
@@ -12,12 +12,12 @@ | |||
12 | * ("GPL"), unless you have obtained a separate licensing agreement | 12 | * ("GPL"), unless you have obtained a separate licensing agreement |
13 | * ("Other License"), formally executed by you and Linden Lab. Terms of | 13 | * ("Other License"), formally executed by you and Linden Lab. Terms of |
14 | * the GPL can be found in doc/GPL-license.txt in this distribution, or | 14 | * the GPL can be found in doc/GPL-license.txt in this distribution, or |
15 | * online at http://secondlife.com/developers/opensource/gplv2 | 15 | * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2 |
16 | * | 16 | * |
17 | * There are special exceptions to the terms and conditions of the GPL as | 17 | * There are special exceptions to the terms and conditions of the GPL as |
18 | * it is applied to this Source Code. View the full text of the exception | 18 | * it is applied to this Source Code. View the full text of the exception |
19 | * in the file doc/FLOSS-exception.txt in this software distribution, or | 19 | * in the file doc/FLOSS-exception.txt in this software distribution, or |
20 | * online at http://secondlife.com/developers/opensource/flossexception | 20 | * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception |
21 | * | 21 | * |
22 | * By copying, modifying or distributing this software, you acknowledge | 22 | * By copying, modifying or distributing this software, you acknowledge |
23 | * that you have read and understood your obligations described above, | 23 | * that you have read and understood your obligations described above, |
@@ -567,7 +567,15 @@ void LLDrawPoolWater::shade() | |||
567 | LLCubeMap* skyMap = gSky.mVOSkyp->getCubeMap(); | 567 | LLCubeMap* skyMap = gSky.mVOSkyp->getCubeMap(); |
568 | 568 | ||
569 | gWaterProgram.enableTexture(LLShaderMgr::ENVIRONMENT_MAP, GL_TEXTURE_CUBE_MAP_ARB); | 569 | gWaterProgram.enableTexture(LLShaderMgr::ENVIRONMENT_MAP, GL_TEXTURE_CUBE_MAP_ARB); |
570 | skyMap->bind(); | 570 | |
571 | if (skyMap) | ||
572 | { | ||
573 | skyMap->bind(); | ||
574 | } | ||
575 | else | ||
576 | { | ||
577 | llwarns << "NULL gSky.mVOSkyp->getCubeMap(), not binding." << llendl; | ||
578 | } | ||
571 | 579 | ||
572 | //bind normal map | 580 | //bind normal map |
573 | S32 bumpTex = gWaterProgram.enableTexture(LLShaderMgr::BUMP_MAP); | 581 | S32 bumpTex = gWaterProgram.enableTexture(LLShaderMgr::BUMP_MAP); |