Make ProgramBinary a refcount object and use Binding pointers to maintain it's lifetime on context and program.

Trac #21270
Bug=351
Signed-off-by: Nicolas Capens

This fixes the underlying bug since it allows the context to keep the program binary alive, after a relink has occurred.



git-svn-id: https://angleproject.googlecode.com/svn/trunk@1242 736b8ea6-26fd-11df-bfd4-992fa37f6226
diff --git a/src/libGLESv2/ProgramBinary.h b/src/libGLESv2/ProgramBinary.h
index f928644..7746e2c 100644
--- a/src/libGLESv2/ProgramBinary.h
+++ b/src/libGLESv2/ProgramBinary.h
@@ -94,7 +94,7 @@
 };
 
 // This is the result of linking a program. It is the state that would be passed to ProgramBinary.
-class ProgramBinary
+class ProgramBinary : public RefCountObject
 {
   public:
     ProgramBinary();