summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
Diffstat (limited to 'libs')
-rw-r--r--[-rwxr-xr-x]libs/hwui/OpenGLRenderer.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/libs/hwui/OpenGLRenderer.cpp b/libs/hwui/OpenGLRenderer.cpp
index cf04be2..bc30738 100755..100644
--- a/libs/hwui/OpenGLRenderer.cpp
+++ b/libs/hwui/OpenGLRenderer.cpp
@@ -208,22 +208,14 @@ status_t OpenGLRenderer::prepareDirty(float left, float top, float right, float
}
status_t OpenGLRenderer::clear(float left, float top, float right, float bottom, bool opaque) {
-#ifdef QCOM_BSP
- mCaches.enableScissor();
- mCaches.setScissor(left, mSnapshot->height - bottom, right - left, bottom - top);
- glClear(GL_COLOR_BUFFER_BIT);
- if(opaque)
- mCaches.resetScissor();
-#else
if (!opaque) {
mCaches.enableScissor();
mCaches.setScissor(left, mSnapshot->height - bottom, right - left, bottom - top);
glClear(GL_COLOR_BUFFER_BIT);
return DrawGlInfo::kStatusDrew;
}
- mCaches.resetScissor();
-#endif
+ mCaches.resetScissor();
return DrawGlInfo::kStatusDone;
}