From d7db4d767246b41d44995acb93d03d220b53c748 Mon Sep 17 00:00:00 2001 From: John Reck Date: Wed, 20 May 2015 07:18:55 -0700 Subject: Eliminate requireGlContext Bug: 20297820 Change-Id: I37c63bab6f6c0d2337c8c6002046d2ef17e74097 --- libs/hwui/Caches.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libs/hwui/Caches.cpp') diff --git a/libs/hwui/Caches.cpp b/libs/hwui/Caches.cpp index f75d6a0..1030451 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 #include @@ -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(); } /////////////////////////////////////////////////////////////////////////////// -- cgit v1.1