Fixed surface slice problem

Task-number: QTRD-3402
Change-Id: I70ef641fc7249b144d6e98971f1fb74f2935d706
Reviewed-by: Mika Salmela <mika.salmela@theqtcompany.com>
This commit is contained in:
Tomi Korpipää 2014-10-31 13:08:42 +02:00 committed by Tomi Korpipää
parent 89911624cf
commit 8cebfaed90
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ GLuint TextureHelper::create2DTexture(const QImage &image, bool useTrilinearFilt
QImage texImage = image;
if (!Utils::isOpenGLES()) {
if (Utils::isOpenGLES()) {
GLuint imageWidth = Utils::getNearestPowerOfTwo(image.width());
GLuint imageHeight = Utils::getNearestPowerOfTwo(image.height());
if (smoothScale) {