Set texture parameters before allocating the texture.
authorGunnar Sletta <gunnar.sletta@nokia.com>
Thu, 1 Mar 2012 10:59:03 +0000 (11:59 +0100)
committerQt by Nokia <qt-info@nokia.com>
Thu, 1 Mar 2012 12:55:49 +0000 (13:55 +0100)
commite759f62124d5b8c1fd433b53db2445548a3e8893
treecb708692dd15b382cfe5fef9e9e6b04e2bc1beab
parent5cd56df0f2ac09572a90a07ffa1cda02d5d2d2f8
Set texture parameters before allocating the texture.

Some drivers use this as a hint to decide on weither to preallocate
mipmap memory or not.

Change-Id: I2fd438a9625b658c7f30fe39a9d63ba5396f9679
Reviewed-by: Kim M. Kalland <kim.kalland@nokia.com>
src/gui/opengl/qopenglframebufferobject.cpp