Webgl renderer / rename function to avoid confusion

`getBlankTexture` was too close to `WebGLHelper#createTexture`
This commit is contained in:
Olivier Guyot
2019-05-19 17:15:49 +02:00
parent f25a16d90c
commit 1257ade199
3 changed files with 6 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
import WebGLLayerRenderer, {
colorDecodeId,
colorEncodeId,
getBlankTexture, POINT_INSTRUCTIONS_COUNT, POINT_VERTEX_STRIDE,
getBlankImageData, POINT_INSTRUCTIONS_COUNT, POINT_VERTEX_STRIDE,
writePointFeatureInstructions, writePointFeatureToBuffers
} from '../../../../../src/ol/renderer/webgl/Layer.js';
import Layer from '../../../../../src/ol/layer/Layer.js';
@@ -239,9 +239,9 @@ describe('ol.renderer.webgl.Layer', function() {
});
describe('getBlankTexture', function() {
describe('getBlankImageData', function() {
it('creates a 1x1 white texture', function() {
const texture = getBlankTexture();
const texture = getBlankImageData();
expect(texture.height).to.eql(1);
expect(texture.width).to.eql(1);
expect(texture.data[0]).to.eql(255);