diff --git a/src/Audio.cpp b/src/Audio.cpp index 04b9f47c..97a33223 100644 --- a/src/Audio.cpp +++ b/src/Audio.cpp @@ -317,7 +317,7 @@ void Audio::renderGraphics() { m_spectrumTexture->setWrapMode(QOpenGLTexture::ClampToEdge); m_spectrumTexture->allocateStorage(); } - m_waveformTexture->setData(QOpenGLTexture::RGBA, QOpenGLTexture::Float32, &waveformGL[waveformPtr * 4]); - m_waveformBeatsTexture->setData(QOpenGLTexture::RGBA, QOpenGLTexture::Float32, &waveformBeatsGL[waveformPtr * 4]); - m_spectrumTexture->setData(QOpenGLTexture::Red, QOpenGLTexture::Float32, spectrumGL.data()); + m_waveformTexture->setData(QOpenGLTexture::RGBA, QOpenGLTexture::Float32, (const void*)&waveformGL[waveformPtr * 4]); + m_waveformBeatsTexture->setData(QOpenGLTexture::RGBA, QOpenGLTexture::Float32, (const void*)&waveformBeatsGL[waveformPtr * 4]); + m_spectrumTexture->setData(QOpenGLTexture::Red, QOpenGLTexture::Float32, (const void*)spectrumGL.data()); } diff --git a/src/Chain.cpp b/src/Chain.cpp index d023da33..09229d05 100644 --- a/src/Chain.cpp +++ b/src/Chain.cpp @@ -52,7 +52,7 @@ GLuint Chain::noiseTexture() { return (xsr() >> 11) * div; }; std::generate(&data[0],&data[compCount],xsrd); - m_noiseTexture.setData(QOpenGLTexture::RGBA, QOpenGLTexture::Float32, &data[0]); + m_noiseTexture.setData(QOpenGLTexture::RGBA, QOpenGLTexture::Float32, (const void*)&data[0]); glFlush(); } @@ -68,7 +68,7 @@ GLuint Chain::blankTexture() { m_blankTexture.setWrapMode(QOpenGLTexture::Repeat); auto data = std::array(); - m_blankTexture.setData(QOpenGLTexture::RGBA, QOpenGLTexture::UInt8, &data[0]); + m_blankTexture.setData(QOpenGLTexture::RGBA, QOpenGLTexture::UInt8, (const void*)&data[0]); } return m_blankTexture.textureId(); diff --git a/src/LightOutputNode.cpp b/src/LightOutputNode.cpp index 1483883b..08bd4a7d 100644 --- a/src/LightOutputNode.cpp +++ b/src/LightOutputNode.cpp @@ -460,7 +460,7 @@ void LightOutputNodeOpenGLWorker::initialize() { p->m_geometry2D.setWrapMode(QOpenGLTexture::Repeat); auto data = std::array(); - p->m_geometry2D.setData(QOpenGLTexture::RGBA, QOpenGLTexture::UInt8, &data[0]); + p->m_geometry2D.setData(QOpenGLTexture::RGBA, QOpenGLTexture::UInt8, (const void*)&data[0]); p->m_displayMode = LightOutputNode::DisplayLookup2D; }