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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user