summaryrefslogtreecommitdiffstats
path: root/opengl/libagl
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2011-05-11 13:41:09 -0700
committerMathias Agopian <mathias@google.com>2011-05-11 13:41:09 -0700
commit69e43b71afb2af729657f6d26ffef142fedbafab (patch)
tree79aaf377c99e5d816393c97e8d4de077e5bf621f /opengl/libagl
parent7355f6c128facc421843f67d84b2d87f72563253 (diff)
downloadframeworks_native-69e43b71afb2af729657f6d26ffef142fedbafab.zip
frameworks_native-69e43b71afb2af729657f6d26ffef142fedbafab.tar.gz
frameworks_native-69e43b71afb2af729657f6d26ffef142fedbafab.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.cpp4
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