Skip to content

Commit

Permalink
gl: set uniform if shader type changed
Browse files Browse the repository at this point in the history
  • Loading branch information
wang-bin committed Apr 2, 2016
1 parent d2de333 commit 0656d76
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/opengl/VideoShader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,8 @@ bool VideoShader::update(VideoMaterial *material)
}
}
}
if (material->isColorMatrixDirty())
// shader type changed, or eq mat changed
if (d.update_builtin_uniforms || material->isColorMatrixDirty())
program()->setUniformValue(colorMatrixLocation(), material->colorMatrix());
// opacity should be here if changed by user
if (!d.update_builtin_uniforms)
Expand Down

0 comments on commit 0656d76

Please sign in to comment.