summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Mathias Agopian <mathias@google.com> 2011-05-11 13:43:04 -0700
committer Android (Google) Code Review <android-gerrit@google.com> 2011-05-11 13:43:04 -0700
commite8c926868f507d97b187f08dea409d4648022ef7 (patch)
tree8e69cefba425d369839f19626c034a6419d46693
parent12ec74c1a71dd0d40a31340fc76025712066ae70 (diff)
parent21bb1c7a1f3303cd75f22000445f3ce9226cbc18 (diff)
Merge "fix libagl surface initialization"
-rw-r--r--opengl/libagl/egl.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/opengl/libagl/egl.cpp b/opengl/libagl/egl.cpp
index 0d03361b0002..03db8d777aa2 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