Make nonpreservedtexture work with Qt 5.2.

Change-Id: I2a51af6833f2d651e5a3b456197594f722fac741
Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>