diff --git a/lib/kwinglutils.cpp b/lib/kwinglutils.cpp index 7e6228e29c..dfba6c053a 100644 --- a/lib/kwinglutils.cpp +++ b/lib/kwinglutils.cpp @@ -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); }