@predy-js/render-interface 0.1.5 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  * Name: @predy-js/render-interface
3
3
  * Description: undefined
4
4
  * Author: undefined
5
- * Version: v0.1.5
5
+ * Version: v0.1.7
6
6
  */
7
7
 
8
8
  'use strict';
@@ -1773,8 +1773,10 @@ var GLProgram = /** @class */ (function () {
1773
1773
  this.uniformInfoMap = uniformMap;
1774
1774
  };
1775
1775
  GLProgram.prototype.bind = function () {
1776
- var gl = this.renderer.gl;
1777
- gl.useProgram(this.glHandle);
1776
+ var renderer = this.renderer;
1777
+ if (renderer) {
1778
+ renderer.state.useProgram(this.glHandle);
1779
+ }
1778
1780
  };
1779
1781
  GLProgram.prototype.setupUniforms = function (state) {
1780
1782
  var _this = this;
@@ -5522,7 +5524,7 @@ var MarsSharedGeometry = /** @class */ (function (_super) {
5522
5524
  return MarsSharedGeometry;
5523
5525
  }(MarsGeometry));
5524
5526
 
5525
- consoleLog('version: ' + "0.1.5");
5527
+ consoleLog('version: ' + "0.1.7");
5526
5528
 
5527
5529
  exports.Geometry = MarsGeometry;
5528
5530
  exports.MarsTextureFactory = MarsTextureFactory;