mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-26 17:58:43 -05:00
Merge pull request #1298 from srcejon/fix_1297
3D Spectrogram: Use texture height rather than fft size
This commit is contained in:
commit
6491735b16
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user