diff options
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 f75d6a082ee4..10304517fff7 100644 --- a/libs/hwui/Caches.cpp +++ b/libs/hwui/Caches.cpp @@ -23,6 +23,7 @@ #include "Properties.h" #include "renderstate/RenderState.h" #include "ShadowTessellator.h" +#include "utils/GLUtils.h" #include <utils/Log.h> #include <utils/String8.h> @@ -276,6 +277,9 @@ void Caches::flush(FlushMode mode) { clearGarbage(); glFinish(); + // Errors during cleanup should be considered non-fatal, dump them and + // and move on. TODO: All errors or just errors like bad surface? + GLUtils::dumpGLErrors(); } /////////////////////////////////////////////////////////////////////////////// |