Fix warning in gfx: "variable does not need to be mutable"
Merge pull request #2696 from saneyuki/fix_warn

Fix warning in gfx: "variable does not need to be mutable"; r=Ms2ger