diff options
author | Juan José Casafranca <juan.casafranca@kdab.com> | 2020-09-30 13:34:39 +0200 |
---|---|---|
committer | Juan José Casafranca <juan.casafranca@kdab.com> | 2020-10-02 14:29:44 +0200 |
commit | 05c84e11f642616c9def8509de90fdb16a360f14 (patch) | |
tree | 66eac4c9a6d0f7983b9e2f40d524522f0cd3cc67 | |
parent | 6fdf835639e56c68ae01da894c7d2b9f552dd87d (diff) |
Set upload options for compressed textures
Change-Id: Icac2b16cfdb3ea98f1b85df397d83a8493bb60ad
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
-rw-r--r-- | src/plugins/renderers/opengl/textures/gltexture.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/renderers/opengl/textures/gltexture.cpp b/src/plugins/renderers/opengl/textures/gltexture.cpp index 574db94f0..bb6ade197 100644 --- a/src/plugins/renderers/opengl/textures/gltexture.cpp +++ b/src/plugins/renderers/opengl/textures/gltexture.cpp @@ -80,7 +80,7 @@ void uploadGLData(QOpenGLTexture *glTex, QOpenGLPixelTransferOptions uploadOptions; uploadOptions.setAlignment(alignment); if (data->isCompressed()) - glTex->setCompressedData(level, layer, face, bytes.size(), bytes.constData()); + glTex->setCompressedData(level, layer, face, bytes.size(), bytes.constData(), &uploadOptions); else glTex->setData(level, layer, face, data->pixelFormat(), data->pixelType(), bytes.constData(), &uploadOptions); } |