diff options
author | Mathias Agopian <mathias@google.com> | 2011-05-11 13:41:09 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2011-05-11 13:41:09 -0700 |
commit | 21bb1c7a1f3303cd75f22000445f3ce9226cbc18 (patch) | |
tree | 0414d9a6087ecd4c82aed19d84d00f1be93fdcfb /opengl/libagl | |
parent | 01defe403f3705ac5802e392ee18a78737c51fcb (diff) | |
download | frameworks_base-21bb1c7a1f3303cd75f22000445f3ce9226cbc18.zip frameworks_base-21bb1c7a1f3303cd75f22000445f3ce9226cbc18.tar.gz frameworks_base-21bb1c7a1f3303cd75f22000445f3ce9226cbc18.tar.bz2 |
fix libagl surface initialization
this broke recently when removing copybit support.
Change-Id: I5cc7ff7f49268411c6c2cfb2d97590d52b13dbd5
Diffstat (limited to 'opengl/libagl')
-rw-r--r-- | opengl/libagl/egl.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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<gralloc_module_t const*>(pModule); + pixelFormatTable = gglGetPixelFormatTable(); // keep a reference on the window |