summaryrefslogtreecommitdiff
path: root/libs/hwui/EglReadback.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libs/hwui/EglReadback.cpp')
-rw-r--r--libs/hwui/EglReadback.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/EglReadback.cpp b/libs/hwui/EglReadback.cpp
index a836afe97c79..2d5367b2508a 100644
--- a/libs/hwui/EglReadback.cpp
+++ b/libs/hwui/EglReadback.cpp
@@ -58,7 +58,7 @@ CopyResult EglReadback::copySurfaceInto(Surface& surface, const Rect& srcRect,
CopyResult EglReadback::copyGraphicBufferInto(GraphicBuffer* graphicBuffer,
Matrix4& texTransform, const Rect& srcRect,
SkBitmap* bitmap) {
- mRenderThread.eglManager().initialize();
+ mRenderThread.requireGlContext();
// TODO: Can't use Image helper since it forces GL_TEXTURE_2D usage via
// GL_OES_EGL_image, which doesn't work since we need samplerExternalOES
// to be able to properly sample from the buffer.