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
{
const char * const g_fakepath = "C:\\fakepath";
unsigned int Program::mCurrentSerial = 1;
AttributeBindings::AttributeBindings()
{
}
......@@ -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;
mVertexShader = NULL;
......@@ -332,11 +330,6 @@ unsigned int Program::getRefCount() const
return mRefCount;
}
unsigned int Program::getSerial() const
{
return mSerial;
}
GLint Program::getProgramBinaryLength() const
{
if (mProgramBinary)
......@@ -349,11 +342,6 @@ GLint Program::getProgramBinaryLength() const
}
}
unsigned int Program::issueSerial()
{
return mCurrentSerial++;
}
int Program::getInfoLogLength() const
{
return mInfoLog.getLength();
......
......@@ -93,8 +93,6 @@ class Program
void validate();
bool isValidated() const;
unsigned int getSerial() const;
GLint getProgramBinaryLength() const;
private:
......@@ -102,8 +100,6 @@ class Program
void unlink(bool destroy = false);
static unsigned int issueSerial();
FragmentShader *mFragmentShader;
VertexShader *mVertexShader;
......@@ -114,10 +110,6 @@ class Program
unsigned int mRefCount;
const unsigned int mSerial;
static unsigned int mCurrentSerial;
ResourceManager *mResourceManager;
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