diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llrender/llglslshader.cpp | 4 | ||||
-rw-r--r-- | linden/indra/newview/lldrawpoolwlsky.cpp | 17 |
2 files changed, 11 insertions, 10 deletions
diff --git a/linden/indra/llrender/llglslshader.cpp b/linden/indra/llrender/llglslshader.cpp index 08d6548..429cf6f 100644 --- a/linden/indra/llrender/llglslshader.cpp +++ b/linden/indra/llrender/llglslshader.cpp | |||
@@ -160,7 +160,9 @@ BOOL LLGLSLShader::createShader(vector<string> * attributes, | |||
160 | 160 | ||
161 | BOOL LLGLSLShader::attachObject(std::string object) | 161 | BOOL LLGLSLShader::attachObject(std::string object) |
162 | { | 162 | { |
163 | if (LLShaderMgr::instance()->mShaderObjects.count(object) > 0) | 163 | //if (LLShaderMgr::instance()->mShaderObjects.count(object) > 0) |
164 | std::map<std::string, GLhandleARB> &ShaderObjects = LLShaderMgr::instance()->mShaderObjects; | ||
165 | if (ShaderObjects.find(object) != ShaderObjects.end()) | ||
164 | { | 166 | { |
165 | stop_glerror(); | 167 | stop_glerror(); |
166 | glAttachObjectARB(mProgramObject, LLShaderMgr::instance()->mShaderObjects[object]); | 168 | glAttachObjectARB(mProgramObject, LLShaderMgr::instance()->mShaderObjects[object]); |
diff --git a/linden/indra/newview/lldrawpoolwlsky.cpp b/linden/indra/newview/lldrawpoolwlsky.cpp index 451d08e..46de496 100644 --- a/linden/indra/newview/lldrawpoolwlsky.cpp +++ b/linden/indra/newview/lldrawpoolwlsky.cpp | |||
@@ -276,18 +276,17 @@ void LLDrawPoolWLSky::render(S32 pass) | |||
276 | LLVector3 const & origin = LLViewerCamera::getInstance()->getOrigin(); | 276 | LLVector3 const & origin = LLViewerCamera::getInstance()->getOrigin(); |
277 | glPushMatrix(); | 277 | glPushMatrix(); |
278 | 278 | ||
279 | glTranslatef(origin.mV[0], origin.mV[1], origin.mV[2]); | 279 | glTranslatef(origin.mV[0], origin.mV[1], origin.mV[2]); |
280 | 280 | ||
281 | // *NOTE: have to bind a texture here since register combiners blending in | 281 | // *NOTE: have to bind a texture here since register combiners blending in |
282 | // renderStars() requires something to be bound and we might as well only | 282 | // renderStars() requires something to be bound and we might as well only |
283 | // bind the moon's texture once. | 283 | // bind the moon's texture once. |
284 | LLImageGL * tex = gSky.mVOSkyp->mFace[LLVOSky::FACE_MOON]->getTexture(); | 284 | LLImageGL * tex = gSky.mVOSkyp->mFace[LLVOSky::FACE_MOON]->getTexture(); |
285 | gGL.getTexUnit(0)->bind(tex); | 285 | gGL.getTexUnit(0)->bind(tex); |
286 | 286 | ||
287 | renderHeavenlyBodies(); | 287 | renderStars(); |
288 | 288 | ||
289 | renderStars(); | 289 | renderHeavenlyBodies(); |
290 | |||
291 | 290 | ||
292 | glPopMatrix(); | 291 | glPopMatrix(); |
293 | 292 | ||