From 7fecf8c1ff04b85de0656d823224702ec5175344 Mon Sep 17 00:00:00 2001 From: Eric Hassold Date: Thu, 31 Mar 2011 16:52:02 -0700 Subject: [PATCH] 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 --- opengl/libs/EGL/egl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opengl/libs/EGL/egl.cpp b/opengl/libs/EGL/egl.cpp index a53b37571..6474c87bb 100644 --- a/opengl/libs/EGL/egl.cpp +++ b/opengl/libs/EGL/egl.cpp @@ -120,7 +120,7 @@ struct egl_display_t { SortedVector 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'; }