Don't compare float to int

This commit is contained in:
Henrik Andersson 2017-09-04 22:21:55 +02:00
parent 6d233c651b
commit e0a19a77e5

View File

@ -116,7 +116,7 @@ void main() {
#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;
} else {
uv_interp = src_rect.xy + abs(src_rect.zw) * vertex;