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
This commit is contained in:
Eric Hassold 2011-03-31 16:52:02 -07:00
parent b484ff5edd
commit 7fecf8c1ff

View File

@ -120,7 +120,7 @@ struct egl_display_t {
SortedVector<egl_object_t*> objects; 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; } ~egl_display_t() { magic = 0; }
inline bool isReady() const { return (refs > 0); } inline bool isReady() const { return (refs > 0); }
inline bool isValid() const { return magic == '_dpy'; } inline bool isValid() const { return magic == '_dpy'; }