1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-08-14 15:33:34 -04:00

Fixed cleanup method on shader classes. Fixes #1179

This commit is contained in:
f4exb
2022-03-18 19:15:17 +01:00
parent cbdf46098d
commit 232fd689d4
6 changed files with 19 additions and 2 deletions
+4
View File
@@ -198,6 +198,10 @@ void GLShaderTextured::drawMutable(unsigned int mode, const QMatrix4x4& transfor
void GLShaderTextured::cleanup()
{
if (!QOpenGLContext::currentContext()) {
return;
}
if (m_program)
{
delete m_program;