提交 ad0aac60 编写于 作者: M Mr.doob

WebGLState: Removed unused getScissorTest().

上级 650775f4
......@@ -340,8 +340,6 @@ function WebGLState( gl, extensions, utils ) {
var currentPolygonOffsetFactor = null;
var currentPolygonOffsetUnits = null;
var currentScissorTest = null;
var maxTextures = gl.getParameter( gl.MAX_COMBINED_TEXTURE_IMAGE_UNITS );
var version = parseFloat( /^WebGL\ ([0-9])/.exec( gl.getParameter( gl.VERSION ) )[ 1 ] );
......@@ -760,16 +758,8 @@ function WebGLState( gl, extensions, utils ) {
}
function getScissorTest() {
return currentScissorTest;
}
function setScissorTest( scissorTest ) {
currentScissorTest = scissorTest;
if ( scissorTest ) {
enable( gl.SCISSOR_TEST );
......@@ -939,7 +929,6 @@ function WebGLState( gl, extensions, utils ) {
setLineWidth: setLineWidth,
setPolygonOffset: setPolygonOffset,
getScissorTest: getScissorTest,
setScissorTest: setScissorTest,
activeTexture: activeTexture,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册