Skip to content

Commit 6fda2ab

Browse files
committed
Fix renderer pixel ratio
1 parent 0c051ec commit 6fda2ab

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

js/src/_base/RendererPool.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ _.extend(RendererPool.prototype, {
7373
preserveDrawingBuffer: true
7474
}
7575
));
76+
renderer.setPixelRatio(window.devicePixelRatio || 1);
7677
renderer.context.canvas.addEventListener("webglcontextlost", this.onContextLost.bind(this), false);
7778
renderer.poolId = this.numCreated;
7879
this.numCreated++;

0 commit comments

Comments
 (0)