Commit 63d5c0c7 authored by Fredrik Höglund's avatar Fredrik Höglund Committed by Martin Flöser

Disable and delete the fragment program if it fails to compile.

svn path=/branches/KDE/4.6/kdebase/workspace/; revision=1215777
parent 9028fcca
......@@ -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;
glDeleteProgramsARB(1, &m_arbProgram);
m_arbProgram = 0;
return false;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment