Merge pull request #10974 from henkz1/gles-10963

Don't compare float to int
This commit is contained in:
Rémi Verschelde 2017-09-05 00:12:43 +02:00 committed by GitHub
commit 77d5013f94

View file

@ -116,7 +116,7 @@ void main() {
#ifdef USE_TEXTURE_RECT #ifdef USE_TEXTURE_RECT
if (dst_rect.z < 0) { // Transpose is encoded as negative dst_rect.z if (dst_rect.z < 0.0) { // Transpose is encoded as negative dst_rect.z
uv_interp = src_rect.xy + abs(src_rect.zw) * vertex.yx; uv_interp = src_rect.xy + abs(src_rect.zw) * vertex.yx;
} else { } else {
uv_interp = src_rect.xy + abs(src_rect.zw) * vertex; uv_interp = src_rect.xy + abs(src_rect.zw) * vertex;