diff options
author | 2012-01-03 14:21:18 -0800 | |
---|---|---|
committer | 2012-01-03 14:21:18 -0800 | |
commit | 173ab4d61077c49f115b82eff34f97fda5a7273a (patch) | |
tree | 752fa92ed419aac3439fed2a4c141799493a881b /libs/hwui/Caches.cpp | |
parent | 3c673732ead2721c564c2bd46780e8ebf10e948b (diff) | |
parent | 82bc7a772747fcf8a6fe7097f70bf2981429ffe9 (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.cpp | 4 |
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) { |