1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2025-04-04 10:38:45 -04:00

TV screen: fixed OpenGL warning

This commit is contained in:
f4exb 2018-03-29 10:41:46 +02:00
parent dbc9e78077
commit 6551c1cf5e

View File

@ -113,7 +113,7 @@ void GLShaderTVArray::InitializeGL(int intCols, int intRows)
m_objImage->fill(QColor(0, 0, 0));
m_objTexture = new QOpenGLTexture(*m_objImage);
m_objTexture->setFormat(QOpenGLTexture::RGBA8_UNorm);
//m_objTexture->setFormat(QOpenGLTexture::RGBA8_UNorm); avoids OpenGL warning and in fact is useless
m_objTexture->setMinificationFilter(QOpenGLTexture::Linear);
m_objTexture->setMagnificationFilter(QOpenGLTexture::Linear);
m_objTexture->setWrapMode(QOpenGLTexture::ClampToEdge);