From 69e43b71afb2af729657f6d26ffef142fedbafab Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Wed, 11 May 2011 13:41:09 -0700 Subject: fix libagl surface initialization this broke recently when removing copybit support. Change-Id: I5cc7ff7f49268411c6c2cfb2d97590d52b13dbd5 --- opengl/libagl/egl.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/opengl/libagl/egl.cpp b/opengl/libagl/egl.cpp index 0d03361..03db8d7 100644 --- a/opengl/libagl/egl.cpp +++ b/opengl/libagl/egl.cpp @@ -338,6 +338,10 @@ egl_window_surface_v2_t::egl_window_surface_v2_t(EGLDisplay dpy, nativeWindow(window), buffer(0), previousBuffer(0), module(0), bits(NULL) { + hw_module_t const* pModule; + hw_get_module(GRALLOC_HARDWARE_MODULE_ID, &pModule); + module = reinterpret_cast(pModule); + pixelFormatTable = gglGetPixelFormatTable(); // keep a reference on the window -- cgit v1.1