summaryrefslogtreecommitdiff
path: root/libs/hwui/Caches.cpp
diff options
context:
space:
mode:
author Romain Guy <romainguy@google.com> 2012-01-03 14:21:18 -0800
committer Android (Google) Code Review <android-gerrit@google.com> 2012-01-03 14:21:18 -0800
commit173ab4d61077c49f115b82eff34f97fda5a7273a (patch)
tree752fa92ed419aac3439fed2a4c141799493a881b /libs/hwui/Caches.cpp
parent3c673732ead2721c564c2bd46780e8ebf10e948b (diff)
parent82bc7a772747fcf8a6fe7097f70bf2981429ffe9 (diff)
Merge "Properly restore the GL scissor after a GL draw functor Bug #5781254"
Diffstat (limited to 'libs/hwui/Caches.cpp')
-rw-r--r--libs/hwui/Caches.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/hwui/Caches.cpp b/libs/hwui/Caches.cpp
index f2205f65974e..b151b20f57b3 100644
--- a/libs/hwui/Caches.cpp
+++ b/libs/hwui/Caches.cpp
@@ -325,6 +325,10 @@ void Caches::setScissor(GLint x, GLint y, GLint width, GLint height) {
}
}
+void Caches::resetScissor() {
+ mScissorX = mScissorY = mScissorWidth = mScissorHeight = 0;
+}
+
TextureVertex* Caches::getRegionMesh() {
// Create the mesh, 2 triangles and 4 vertices per rectangle in the region
if (!mRegionMesh) {