Use ShaderManager to bind the shader in Lanczos.

This commit is contained in:
Martin Gräßlin 2011-01-30 13:59:07 +01:00
parent ccd0cae094
commit a6de13e2f7

View file

@ -633,11 +633,11 @@ bool LanczosShader::init()
m_shader = ShaderManager::instance()->loadFragmentShader(ShaderManager::SimpleShader, ":/resources/lanczos-fragment.glsl");
if (m_shader->isValid())
{
m_shader->bind();
ShaderManager::instance()->pushShader(m_shader);
m_uTexUnit = m_shader->uniformLocation("texUnit");
m_uKernel = m_shader->uniformLocation("kernel");
m_uOffsets = m_shader->uniformLocation("offsets");
m_shader->unbind();
ShaderManager::instance()->popShader();
return true;
}
else