summaryrefslogtreecommitdiff
path: root/indra/newview/lldynamictexture.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/lldynamictexture.cpp')
-rw-r--r--indra/newview/lldynamictexture.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/indra/newview/lldynamictexture.cpp b/indra/newview/lldynamictexture.cpp
index 039ed2862f..d29ac9b43a 100644
--- a/indra/newview/lldynamictexture.cpp
+++ b/indra/newview/lldynamictexture.cpp
@@ -141,6 +141,7 @@ void LLDynamicTexture::preRender(BOOL clear_depth)
if (window_pos.mY < 0)
{
mOrigin.mY += window_pos.mY;
+ mOrigin.mY = llmax(mOrigin.mY, 0) ;
}
LLImageGL::unbindTexture(0, GL_TEXTURE_2D);