Convert ol.render.Event#get* methods into properties

This commit is contained in:
Tom Payne
2014-01-23 20:21:55 +01:00
parent 37351c530c
commit df0912bdd3
13 changed files with 42 additions and 60 deletions
+2 -2
View File
@@ -41,7 +41,7 @@ if (!ol.BrowserFeature.HAS_WEBGL) {
].join('');
osm.on('precompose', function(event) {
var context = event.getGlContext();
var context = event.glContext;
var gl = context.getGL();
var program = gl.createProgram();
@@ -96,7 +96,7 @@ if (!ol.BrowserFeature.HAS_WEBGL) {
});
osm.on('postcompose', function(event) {
var context = event.getGlContext();
var context = event.glContext;
var gl = context.getGL();
gl.disable(gl.STENCIL_TEST);
});