1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-22 08:04:49 -05:00

3D Spectrogram: Use texture height rather than fft size for clamping limit

This commit is contained in:
Jon Beniston 2022-06-21 10:09:08 +01:00
parent e48551a837
commit 4df26f7140

View File

@ -419,7 +419,7 @@ void GLShaderSpectrogram::drawSurface(SpectrumSettings::SpectrogramStyle style,
program->setUniformValue(m_dataTextureLoc, 0); // set uniform to texture unit?
program->setUniformValue(m_colorMapLoc, 1);
program->setUniformValue(m_limitLoc, 1.5f*1.0f/(float)(m_gridElements));
program->setUniformValue(m_limitLoc, 1.4f*1.0f/(float)(m_texture->height()));
if (style == SpectrumSettings::Outline)
{