1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-26 09:48:45 -05:00

Merge pull request #1298 from srcejon/fix_1297

3D Spectrogram: Use texture height rather than fft size
This commit is contained in:
Edouard Griffiths 2022-06-21 12:59:39 +02:00 committed by GitHub
commit 6491735b16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)
{