Correctly release the OpenGL Canvas on EGL error.

Change-Id: Ib31fd8445f7ce5f7aa7e0205de0e7db80d024fc2
diff --git a/libs/hwui/Program.h b/libs/hwui/Program.h
index 5981662..afc6f3d 100644
--- a/libs/hwui/Program.h
+++ b/libs/hwui/Program.h
@@ -70,6 +70,13 @@
     }
 
     /**
+     * Indicates whether this program was correctly compiled and linked.
+     */
+    inline bool isInitialized() const {
+        return mInitialized;
+    }
+
+    /**
      * Binds the program with the specified projection, modelView and
      * transform matrices.
      */
@@ -126,6 +133,7 @@
     KeyedVector<const char*, int> uniforms;
 
     bool mUse;
+    bool mInitialized;
 }; // class Program
 
 }; // namespace uirenderer