diff options
author | Eric Hassold <hassold@google.com> | 2011-03-31 16:52:02 -0700 |
---|---|---|
committer | Eric Hassold <hassold@google.com> | 2011-03-31 16:52:02 -0700 |
commit | 8bdf09b0d73451a0caabee7c842d2d542678c35c (patch) | |
tree | 66fd7e3e081095dcc22e4e3eaf642b69c36d9d4c /opengl/libs/EGL/egl.cpp | |
parent | 829f8e5ae5be10dbadd93b89881d0b87def4f236 (diff) | |
download | frameworks_base-8bdf09b0d73451a0caabee7c842d2d542678c35c.zip frameworks_base-8bdf09b0d73451a0caabee7c842d2d542678c35c.tar.gz frameworks_base-8bdf09b0d73451a0caabee7c842d2d542678c35c.tar.bz2 |
Initialize reference counter for egl_display_t
Add missing member initialization for reference counter, used to determine
if a context is ready.
Change-Id: I45f81177ac2851129681f827afe015b60b3cd73c
Diffstat (limited to 'opengl/libs/EGL/egl.cpp')
-rw-r--r-- | opengl/libs/EGL/egl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/opengl/libs/EGL/egl.cpp b/opengl/libs/EGL/egl.cpp index a53b375..6474c87 100644 --- a/opengl/libs/EGL/egl.cpp +++ b/opengl/libs/EGL/egl.cpp @@ -120,7 +120,7 @@ struct egl_display_t { SortedVector<egl_object_t*> objects; - egl_display_t() : magic('_dpy'), numTotalConfigs(0), configs(0) { } + egl_display_t() : magic('_dpy'), numTotalConfigs(0), configs(0), refs(0) { } ~egl_display_t() { magic = 0; } inline bool isReady() const { return (refs > 0); } inline bool isValid() const { return magic == '_dpy'; } |