Explorar o código

Merge pull request #59 from gwenael-hagenmuller/master

Fixed operators priority issue
deltakosh %!s(int64=12) %!d(string=hai) anos
pai
achega
66a2cb8078
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Babylon/babylon.engine.js

+ 1 - 1
Babylon/babylon.engine.js

@@ -27,7 +27,7 @@
         this._workingContext = this._workingCanvas.getContext("2d");
 
         // Viewport
-        this._hardwareScalingLevel = 1.0 / window.devicePixelRatio || 1.0;
+        this._hardwareScalingLevel = 1.0 / (window.devicePixelRatio || 1.0);
         this.resize();
 
         // Caps