@predy-js/render-interface 0.1.4 → 0.1.6

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.mjs CHANGED
@@ -2,7 +2,7 @@
2
2
  * Name: @predy-js/render-interface
3
3
  * Description: undefined
4
4
  * Author: undefined
5
- * Version: v0.1.4
5
+ * Version: v0.1.6
6
6
  */
7
7
 
8
8
  /******************************************************************************
@@ -1769,8 +1769,10 @@ var GLProgram = /** @class */ (function () {
1769
1769
  this.uniformInfoMap = uniformMap;
1770
1770
  };
1771
1771
  GLProgram.prototype.bind = function () {
1772
- var gl = this.renderer.gl;
1773
- gl.useProgram(this.glHandle);
1772
+ var renderer = this.renderer;
1773
+ if (renderer) {
1774
+ renderer.state.useProgram(this.glHandle);
1775
+ }
1774
1776
  };
1775
1777
  GLProgram.prototype.setupUniforms = function (state) {
1776
1778
  var _this = this;
@@ -5518,7 +5520,7 @@ var MarsSharedGeometry = /** @class */ (function (_super) {
5518
5520
  return MarsSharedGeometry;
5519
5521
  }(MarsGeometry));
5520
5522
 
5521
- consoleLog('version: ' + "0.1.4");
5523
+ consoleLog('version: ' + "0.1.6");
5522
5524
 
5523
5525
  export { DestroyOptions, MarsGeometry as Geometry, MarsTextureFactory, MarsMaterial as Material, MarsMaterialDataBlock as MaterialDataBlock, MarsMesh as Mesh, MarsRenderFrame as RenderFrame, MarsRenderPass as RenderPass, RenderPassAttachmentStorageType, RenderPassDestroyAttachmentType, RenderPassMeshOrder, RenderPassPriorityNormal, RenderPassPriorityPostprocess, RenderPassPriorityPrepare, MarsRenderer as Renderer, ShaderCompileResultStatus, ShaderLibraryEmpty, MarsSharedGeometry as SharedGeometry, MarsTexture as Texture, TextureLoadAction, TextureSourceType, TextureStoreAction, constants, getDefaultGPUCapability, getDefaultTextureFactory, setDefaultTextureFactory };
5524
5526
  //# sourceMappingURL=index.mjs.map