Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bd79bcc9 authored by Eric Hassold's avatar Eric Hassold Committed by Android (Google) Code Review
Browse files

Merge "Initialize reference counter for egl_display_t"

parents 1780981f 7fecf8c1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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'; }