summaryrefslogtreecommitdiff
path: root/indra/newview/lldrawpool.cpp
diff options
context:
space:
mode:
authorOz Linden <oz@lindenlab.com>2016-07-26 17:49:41 -0400
committerOz Linden <oz@lindenlab.com>2016-07-26 17:49:41 -0400
commit47f2c6bd52a9e929af8ccefa08d11ad18f05602b (patch)
tree77d601c23539f576807f3e2cd8a62603b275905d /indra/newview/lldrawpool.cpp
parentbea18c933bd97b838644f0d1738c633495b6b102 (diff)
parent19640c015ecfefde767be49168684b27f5ceabb2 (diff)
merge callums latest changes
Diffstat (limited to 'indra/newview/lldrawpool.cpp')
-rw-r--r--indra/newview/lldrawpool.cpp45
1 files changed, 0 insertions, 45 deletions
diff --git a/indra/newview/lldrawpool.cpp b/indra/newview/lldrawpool.cpp
index a6cf917cbd..f74164aea6 100644
--- a/indra/newview/lldrawpool.cpp
+++ b/indra/newview/lldrawpool.cpp
@@ -473,10 +473,6 @@ void LLRenderPass::pushBatch(LLDrawInfo& params, U32 mask, BOOL texture, BOOL ba
if (params.mTextureList[i].notNull())
{
gGL.getTexUnit(i)->bind(params.mTextureList[i], TRUE);
- if (LLViewerTexture::MEDIA_TEXTURE == params.mTextureList[i]->getType())
- {
- gGL.setInverseTexCoordByY(true);
- }
}
}
}
@@ -486,54 +482,13 @@ void LLRenderPass::pushBatch(LLDrawInfo& params, U32 mask, BOOL texture, BOOL ba
{
params.mTexture->addTextureStats(params.mVSize);
gGL.getTexUnit(0)->bind(params.mTexture, TRUE) ;
-
- if (!gPipeline.mVertexShadersEnabled)
- {
- if (LLViewerTexture::MEDIA_TEXTURE == params.mTexture->getType() && !params.mTextureMatrix)
- {
- static const float fIdntInvY[] = {
- 1, 0, 0, 0,
- 0, -1, 0, 0,
- 0, 0, 1, 0,
- 0, 0, 0, 1
- };
-
- gGL.getTexUnit(0)->activate();
- gGL.matrixMode(LLRender::MM_TEXTURE);
- gGL.loadMatrix((GLfloat*)fIdntInvY);
- gPipeline.mTextureMatrixOps++;
-
- tex_setup = true;
- }
- }
- else
- {
- gGL.setInverseTexCoordByY(LLViewerTexture::MEDIA_TEXTURE == params.mTexture->getType());
- }
-
if (params.mTextureMatrix)
{
tex_setup = true;
gGL.getTexUnit(0)->activate();
gGL.matrixMode(LLRender::MM_TEXTURE);
gGL.loadMatrix((GLfloat*) params.mTextureMatrix->mMatrix);
-
- if (LLViewerTexture::MEDIA_TEXTURE == params.mTexture->getType() && !gPipeline.mVertexShadersEnabled)
- {
- static const float fIdntInvY[] = {
- 1, 0, 0, 0,
- 0, -1, 0, 0,
- 0, 0, 1, 0,
- 0, 0, 0, 1
- };
-
- gGL.multMatrix(fIdntInvY);
- gPipeline.mMatrixOpCount++;
- }
-
gPipeline.mTextureMatrixOps++;
-
- tex_setup = true;
}
}
else