From 175b45c5def9ddc0c168d00b1d3497c24ecccb19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20H=C3=B6glund?= Date: Sat, 12 Feb 2011 01:20:20 +0100 Subject: [PATCH] kwin: Fix an uninitialized member in GLShader. mLocationsResolved wasn't being initialized in one of the constructors. --- lib/kwinglutils.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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); }