Remove Program serial tracking. It is no longer useful (or used).

Trac #21270 Bug=351 Signed-off-by: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@1234 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent e6af4f93
...@@ -22,8 +22,6 @@ namespace gl ...@@ -22,8 +22,6 @@ namespace gl
{ {
const char * const g_fakepath = "C:\\fakepath"; const char * const g_fakepath = "C:\\fakepath";
unsigned int Program::mCurrentSerial = 1;
AttributeBindings::AttributeBindings() AttributeBindings::AttributeBindings()
{ {
} }
...@@ -138,7 +136,7 @@ void InfoLog::reset() ...@@ -138,7 +136,7 @@ void InfoLog::reset()
} }
} }
Program::Program(ResourceManager *manager, GLuint handle) : mResourceManager(manager), mHandle(handle), mSerial(issueSerial()) Program::Program(ResourceManager *manager, GLuint handle) : mResourceManager(manager), mHandle(handle)
{ {
mFragmentShader = NULL; mFragmentShader = NULL;
mVertexShader = NULL; mVertexShader = NULL;
...@@ -332,11 +330,6 @@ unsigned int Program::getRefCount() const ...@@ -332,11 +330,6 @@ unsigned int Program::getRefCount() const
return mRefCount; return mRefCount;
} }
unsigned int Program::getSerial() const
{
return mSerial;
}
GLint Program::getProgramBinaryLength() const GLint Program::getProgramBinaryLength() const
{ {
if (mProgramBinary) if (mProgramBinary)
...@@ -349,11 +342,6 @@ GLint Program::getProgramBinaryLength() const ...@@ -349,11 +342,6 @@ GLint Program::getProgramBinaryLength() const
} }
} }
unsigned int Program::issueSerial()
{
return mCurrentSerial++;
}
int Program::getInfoLogLength() const int Program::getInfoLogLength() const
{ {
return mInfoLog.getLength(); return mInfoLog.getLength();
......
...@@ -93,8 +93,6 @@ class Program ...@@ -93,8 +93,6 @@ class Program
void validate(); void validate();
bool isValidated() const; bool isValidated() const;
unsigned int getSerial() const;
GLint getProgramBinaryLength() const; GLint getProgramBinaryLength() const;
private: private:
...@@ -102,8 +100,6 @@ class Program ...@@ -102,8 +100,6 @@ class Program
void unlink(bool destroy = false); void unlink(bool destroy = false);
static unsigned int issueSerial();
FragmentShader *mFragmentShader; FragmentShader *mFragmentShader;
VertexShader *mVertexShader; VertexShader *mVertexShader;
...@@ -114,10 +110,6 @@ class Program ...@@ -114,10 +110,6 @@ class Program
unsigned int mRefCount; unsigned int mRefCount;
const unsigned int mSerial;
static unsigned int mCurrentSerial;
ResourceManager *mResourceManager; ResourceManager *mResourceManager;
const GLuint mHandle; const GLuint mHandle;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment