kwin: Fix an uninitialized member in GLShader.

mLocationsResolved wasn't being initialized in one of the constructors.
This commit is contained in:
Fredrik Höglund 2011-02-12 01:20:20 +01:00
parent 8dc537af57
commit 175b45c5de

View file

@ -713,12 +713,12 @@ GLShader::GLShader()
}
GLShader::GLShader(const QString& vertexfile, const QString& fragmentfile)
: mProgram(0)
, mValid(false)
, mLocationsResolved(false)
, mTextureWidth(-1.0f)
, mTextureHeight(-1.0f)
{
mValid = false;
mProgram = 0;
mTextureWidth = -1.0f;
mTextureHeight = -1.0f;
loadFromFiles(vertexfile, fragmentfile);
}