Newer
Older
pixi.js / src / core / renderers / webgl / utils / validateContext.js
@Chad Engler Chad Engler on 18 Oct 2016 415 bytes 4.1.0
export default function validateContext(gl)
{
    const attributes = gl.getContextAttributes();

    // this is going to be fairly simple for now.. but at least we have rom to grow!
    if (!attributes.stencil)
    {
        /* eslint-disable no-console */
        console.warn('Provided WebGL context does not have a stencil buffer, masks may not render correctly');
        /* eslint-enable no-console */
    }
}