Make getStencilBits static

Made getStencilBits static so it can be called.
Merge pull request #566 from jampot5000/patch-1

Make getStencilBits static