Skip to content

Commit

Permalink
rebase + add device_pixel_ratio to painter
Browse files Browse the repository at this point in the history
  • Loading branch information
Molly Lloyd committed Nov 11, 2016
1 parent 7698394 commit f0d0774
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/render/painter.js
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ class Painter {
const program = gl.createProgram();
const definition = shaders[name];

let definesSource = '#define MAPBOX_GL_JS;\n';
let definesSource = `#define MAPBOX_GL_JS\n#define DEVICE_PIXEL_RATIO ${browser.devicePixelRatio.toFixed(1)}\n`;
if (this._showOverdrawInspector) {
definesSource += '#define OVERDRAW_INSPECTOR;\n';
}
Expand Down

0 comments on commit f0d0774

Please sign in to comment.