зеркало из https://github.com/mozilla/gecko-dev.git
Backout d6c58a2a6da4 (bug 1012407) for various bustages on a CLOSED TREE
This commit is contained in:
Родитель
a31a0e4ff3
Коммит
3087f2eca6
|
@ -384,14 +384,6 @@ DecomposeIntoNoRepeatRects(const Rect& aRect,
|
|||
{
|
||||
Rect texCoordRect = aTexCoordRect;
|
||||
|
||||
// We want to normalize here instead of clamp because the rects we were
|
||||
// given assume GL_REPEAT, which we explicitly won't use and instead
|
||||
// manually split into sub-rects.
|
||||
while (texCoordRect.x >= 1.0f)
|
||||
texCoordRect.x -= 1.0f;
|
||||
while (texCoordRect.y >= 1.0f)
|
||||
texCoordRect.y -= 1.0f;
|
||||
|
||||
// If the texture should be flipped, it will have negative height. Detect that
|
||||
// here and compensate for it. We will flip each rect as we emit it.
|
||||
bool flipped = false;
|
||||
|
|
Загрузка…
Ссылка в новой задаче