@openglobus/og 0.11.7 → 0.11.8

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.
@@ -151,7 +151,11 @@ export class GeoImageCreator {
151
151
  `precision highp float;
152
152
  uniform sampler2D sourceTexture;
153
153
  varying vec2 v_texCoords;
154
- void main () {
154
+ void main () {
155
+ if(v_texCoords.x <= 0.001 || v_texCoords.x >= 0.999 ||
156
+ v_texCoords.y <= 0.001 || v_texCoords.y >= 0.999) {
157
+ discard;
158
+ }
155
159
  gl_FragColor = texture2D(sourceTexture, v_texCoords);
156
160
  }`
157
161
  }));
@@ -919,7 +919,7 @@ class Handler {
919
919
  /** Canvas resize checking */
920
920
  let canvas = this.canvas;
921
921
 
922
- if (canvas.clientWidth * this._params.pixelRatio !== canvas.width || canvas.clientHeight * this._params.pixelRatio !== canvas.height) {
922
+ if (Math.floor(canvas.clientWidth * this._params.pixelRatio) !== canvas.width || Math.floor(canvas.clientHeight * this._params.pixelRatio) !== canvas.height) {
923
923
  this.setSize(canvas.clientWidth, canvas.clientHeight);
924
924
  }
925
925