Use texture2DArray for colormap to work with OpenGL ES

This commit is contained in:
2025-03-05 21:14:43 +01:00
parent 5150ec5639
commit 7b70b6cce5
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -777,7 +777,7 @@ void ImageWidgetGL::initializeGL()
m_lut->bind(2);
QImage colormap = loadColormap();
m_colormap = std::make_unique<QOpenGLTexture>(QOpenGLTexture::Target1DArray);
m_colormap = std::make_unique<QOpenGLTexture>(QOpenGLTexture::Target2DArray);
m_colormap->setSize(colormap.width());
m_colormap->setLayers(colormap.height());
m_colormap->setFormat(QOpenGLTexture::RGBA8_UNorm);