Initialize mSize in the GLTexture(int width, int height) constructor.

svn path=/trunk/KDE/kdebase/workspace/; revision=1099475
icc-effect-5.14.5
Fredrik Höglund 2010-03-05 17:04:59 +00:00
parent a86b49cc54
commit 423ce5e170
1 changed files with 1 additions and 0 deletions

View File

@ -358,6 +358,7 @@ GLTexture::GLTexture( int width, int height )
mTarget = GL_TEXTURE_2D;
mScale.setWidth( 1.0 / width);
mScale.setHeight( 1.0 / height);
mSize = QSize( width, height );
can_use_mipmaps = true;
glGenTextures( 1, &mTexture );