am 5d477279: am cf6b2765: Merge "fix a bug where FLIP_H would do a 180 rotation" into gingerbread

Merge commit '5d477279e6e41c9d61abe66dcded5c57a51e2c78'

* commit '5d477279e6e41c9d61abe66dcded5c57a51e2c78':
  fix a bug where FLIP_H would do a 180 rotation
This commit is contained in:
Mathias Agopian 2010-10-12 13:57:09 -07:00 committed by Android Git Automerger
commit eb8f8980d4

View File

@ -453,11 +453,11 @@ void LayerBase::drawWithOpenGL(const Region& clip, const Texture& texture) const
}
if (transform & HAL_TRANSFORM_FLIP_V) {
swap(vLT, vLB);
swap(vRB, vRT);
swap(vRT, vRB);
}
if (transform & HAL_TRANSFORM_FLIP_H) {
swap(vLT, vRB);
swap(vLB, vRT);
swap(vLT, vRT);
swap(vLB, vRB);
}
TexCoords texCoords[4];