Commit 9ce57a76 authored by Martin Flöser's avatar Martin Flöser

Use ShaderManager to bind the shader in Lanczos.

parent 339b136d
......@@ -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
......
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