Newer
Older
pixi.js / src / core / renderers / webgl / utils / validateContext.js
@Mat Groves Mat Groves on 11 Jun 2016 326 bytes added context validator


function validateContext(gl)
{
	var attributes = gl.getContextAttributes();

	// this is going to be fairly simple for now.. but at least we have rom to grow!
	if(!attributes.stencil)
	{
		console.warn("Provided WebGL context does not have a stencil buffer, masks may not correctly")
	}
}

module.exports = validateContext;