X-Git-Url: https://git.yukkurigames.com/?p=pwl6.git;a=blobdiff_plain;f=src%2Fyuu%2Fgfx.js;fp=src%2Fyuu%2Fgfx.js;h=2c3088e8868e6ad6cb62435e919bdcaec36a0305;hp=3765aaac3540adc06d0bf685ebd3071c4409769c;hb=dbc00bdf315113f4146872abfa973f3c73a0e3e8;hpb=bbc9f232f882b7d4b64ae4c1e21260c1fa196a09 diff --git a/src/yuu/gfx.js b/src/yuu/gfx.js index 3765aaa..2c3088e 100644 --- a/src/yuu/gfx.js +++ b/src/yuu/gfx.js @@ -12,22 +12,7 @@ var gl; var canvas; - // Safari on OS X has issues with DPR != 1 where the backbuffer - // scales down, then back up. I'm pretty sure this is not a - // problem with this code, because I see similar artifacting on - // most demos, e.g. - // https://www.khronos.org/registry/webgl/sdk/demos/google/shiny-teapot/index.html - // - // With DPR = 1 this presumably still happens but the negative - // effect is lessened. - // - // Safari on iOS does _not_ have this problem (another reason why - // I suspect it's a bug in Safari and not this code), but reducing - // fragment count by 75% is generally a good idea on these devices - // anyway. - var dpr = yuu.DPR = !yuu.isSafari() - ? (this.devicePixelRatio || 1) - : 1; + var dpr = yuu.DPR = this.devicePixelRatio || 1; yT.defineProperty(Int8Array.prototype, "GL_TYPE", 0x1400); yT.defineProperty(Uint8Array.prototype, "GL_TYPE", 0x1401);