diff options
-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); } |