Comparing version 0.13.2 to 0.13.3
@@ -33,4 +33,4 @@ import Buffer from './Buffer'; | ||
*/ | ||
bind(gl, location, instancesExt) { | ||
this._buffer.bind(gl, location, this.options, instancesExt); | ||
bind(gl, location, options, instancesExt) { | ||
this._buffer.bind(gl, location, options || this.options, instancesExt); | ||
} | ||
@@ -37,0 +37,0 @@ } |
@@ -92,3 +92,3 @@ /// <reference types="@2gis/gl-matrix" /> | ||
constructor(buffer: Buffer, options: Partial<BufferBindOptions>); | ||
public bind(gl: WebGLRenderingContext, location?: number): this; | ||
public bind(gl: WebGLRenderingContext, location?: number, options?: BufferBindOptions, instancesExt?: ANGLE_instanced_arrays): this; | ||
} | ||
@@ -95,0 +95,0 @@ |
{ | ||
"name": "2gl", | ||
"version": "0.13.2", | ||
"version": "0.13.3", | ||
"description": "WebGL library for 2GIS projects", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -33,4 +33,4 @@ import Buffer from './Buffer'; | ||
*/ | ||
bind(gl, location, instancesExt) { | ||
this._buffer.bind(gl, location, this.options, instancesExt); | ||
bind(gl, location, options, instancesExt) { | ||
this._buffer.bind(gl, location, options || this.options, instancesExt); | ||
} | ||
@@ -37,0 +37,0 @@ } |
@@ -101,3 +101,3 @@ /** | ||
} | ||
attributes[name].bind(gl, shaderAttribute.location, instancesExt); | ||
attributes[name].bind(gl, shaderAttribute.location, null, instancesExt); | ||
} | ||
@@ -104,0 +104,0 @@ if (this.indicesBuffer) { |
@@ -101,3 +101,3 @@ /** | ||
} | ||
attributes[name].bind(gl, shaderAttribute.location, instancesExt); | ||
attributes[name].bind(gl, shaderAttribute.location, null, instancesExt); | ||
} | ||
@@ -104,0 +104,0 @@ if (this.indicesBuffer) { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
820847