Initialize mSize in the GLTexture(int width, int height) constructor.
svn path=/trunk/KDE/kdebase/workspace/; revision=1099475icc-effect-5.14.5
parent
a86b49cc54
commit
423ce5e170
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue