Merge
commit
bdcb177fbb
|
|
@ -63,6 +63,8 @@ void LLDrawPoolSky::prerender()
|
|||
|
||||
void LLDrawPoolSky::render(S32 pass)
|
||||
{
|
||||
gGL.flush();
|
||||
|
||||
if (mDrawFace.empty())
|
||||
{
|
||||
return;
|
||||
|
|
@ -111,13 +113,14 @@ void LLDrawPoolSky::render(S32 pass)
|
|||
|
||||
S32 face_count = (S32)mDrawFace.size();
|
||||
|
||||
LLVertexBuffer::unbind();
|
||||
glColor4f(1,1,1,1);
|
||||
|
||||
for (S32 i = 0; i < llmin(6, face_count); ++i)
|
||||
{
|
||||
renderSkyCubeFace(i);
|
||||
}
|
||||
|
||||
LLGLEnable blend(GL_BLEND);
|
||||
|
||||
glPopMatrix();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -304,7 +304,7 @@ void LLSkyTex::createGLImage(S32 which)
|
|||
|
||||
void LLSkyTex::bindTexture(BOOL curr)
|
||||
{
|
||||
gGL.getTexUnit(0)->bind(mTexture[getWhich(curr)]);
|
||||
gGL.getTexUnit(0)->bind(mTexture[getWhich(curr)], true);
|
||||
}
|
||||
|
||||
/***************************************
|
||||
|
|
|
|||
Loading…
Reference in New Issue