graphics: Bug fix: wrong refactoring in shader

This commit is contained in:
Hajime Hoshi 2018-05-13 14:20:54 +09:00
parent efaa5aa17a
commit b402cddd01

View File

@ -90,7 +90,7 @@ highp vec2 roundTexel(highp vec2 p) {
// highp (relative) precision is 2^(-16) in the spec.
// The minimum value for a denominator is half of 65536.
highp float factor = 1.0 / 32768.0;
return p - (mod(p.x + factor * 0.5, factor) - factor * 0.5);
return p - (mod(p + factor * 0.5, factor) - factor * 0.5);
}
void main(void) {