Properly restore the GL scissor after a GL draw functor
Bug #5781254
Change-Id: I1dc4809563a793b6b579814951d4d73b4c34bf32
diff --git a/libs/hwui/Caches.h b/libs/hwui/Caches.h
index d264971..409584f 100644
--- a/libs/hwui/Caches.h
+++ b/libs/hwui/Caches.h
@@ -193,6 +193,11 @@
void setScissor(GLint x, GLint y, GLint width, GLint height);
/**
+ * Resets the scissor state.
+ */
+ void resetScissor();
+
+ /**
* Returns the mesh used to draw regions. Calling this method will
* bind a VBO of type GL_ELEMENT_ARRAY_BUFFER that contains the
* indices for the region mesh.