Only use GLSL shader for lanczosfilter if ShaderManager is valid
This commit is contained in:
parent
818a936e99
commit
728f333e6a
1 changed files with 1 additions and 0 deletions
|
@ -604,6 +604,7 @@ bool LanczosShader::init()
|
||||||
{
|
{
|
||||||
GLPlatform *gl = GLPlatform::instance();
|
GLPlatform *gl = GLPlatform::instance();
|
||||||
if (gl->supports(GLSL) &&
|
if (gl->supports(GLSL) &&
|
||||||
|
ShaderManager::instance()->isValid() &&
|
||||||
GLRenderTarget::supported() &&
|
GLRenderTarget::supported() &&
|
||||||
!(gl->isRadeon() && gl->chipClass() < R600)) {
|
!(gl->isRadeon() && gl->chipClass() < R600)) {
|
||||||
m_shader = ShaderManager::instance()->loadFragmentShader(ShaderManager::SimpleShader, ":/resources/lanczos-fragment.glsl");
|
m_shader = ShaderManager::instance()->loadFragmentShader(ShaderManager::SimpleShader, ":/resources/lanczos-fragment.glsl");
|
||||||
|
|
Loading…
Reference in a new issue