From 3c2b7fa8c584c5ed56f1bd6ad53f2e87f0a6eb44 Mon Sep 17 00:00:00 2001 From: John Reck Date: Mon, 7 Jul 2014 09:16:54 -0700 Subject: Add missing requireGlContext Change-Id: I7100e5e9986f502f66a23ecea07a6057522c43ac --- libs/hwui/renderthread/CanvasContext.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'libs') diff --git a/libs/hwui/renderthread/CanvasContext.cpp b/libs/hwui/renderthread/CanvasContext.cpp index 524ee62..f5d4f8b 100644 --- a/libs/hwui/renderthread/CanvasContext.cpp +++ b/libs/hwui/renderthread/CanvasContext.cpp @@ -260,6 +260,7 @@ void CanvasContext::trimMemory(RenderThread& thread, int level) { // No context means nothing to free if (!thread.eglManager().hasEglContext()) return; + thread.eglManager().requireGlContext(); if (level >= TRIM_MEMORY_COMPLETE) { Caches::getInstance().flush(Caches::kFlushMode_Full); thread.eglManager().destroy(); -- cgit v1.1