diff --git a/lanczosfilter.cpp b/lanczosfilter.cpp index 1b6695ac81..f92e529859 100644 --- a/lanczosfilter.cpp +++ b/lanczosfilter.cpp @@ -708,6 +708,10 @@ bool LanczosShader::init() { const char *error = (const char*)glGetString(GL_PROGRAM_ERROR_STRING_ARB); kError() << "Failed to compile fragment program:" << error; + glBindProgramARB(GL_FRAGMENT_PROGRAM_ARB, 0); + glDeleteProgramsARB(1, &m_arbProgram); + glDisable(GL_FRAGMENT_PROGRAM_ARB); + m_arbProgram = 0; return false; }