Add depth test to PolygonReplay

This commit is contained in:
GaborFarkas
2016-11-11 14:58:17 +01:00
parent 310fabe94a
commit ca1414b2d0
2 changed files with 27 additions and 1 deletions

View File

@@ -406,7 +406,14 @@ describe('ol.render.webgl.PolygonReplay', function() {
geometry: new ol.geom.Polygon([[[0, 0], [500, 500], [500, 0], [0, 0]]])
});
beforeEach(function() {
gl = {};
gl = {
getParameter: function() {},
enable: function() {},
disable: function() {},
depthMask: function() {},
depthFunc: function() {},
clear: function() {}
};
context = {};
replay.setFillStyle_ = function() {};
replay.drawElements = function() {};