mirror of https://github.com/qt/qtdatavis3d.git
Fixed surface slice problem
Task-number: QTRD-3402 Change-Id: I70ef641fc7249b144d6e98971f1fb74f2935d706 Reviewed-by: Mika Salmela <mika.salmela@theqtcompany.com>
This commit is contained in:
parent
89911624cf
commit
8cebfaed90
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue