diff options
author | Henrik Andersson <henke@henkeandersson.se> | 2017-09-04 22:21:55 +0200 |
---|---|---|
committer | Henrik Andersson <henke@henkeandersson.se> | 2017-09-04 22:21:55 +0200 |
commit | e0a19a77e58a783aa464086c8749b5f4aec16cd5 (patch) | |
tree | f036f1710f8c15f8962824c1748eaa6b915c401d /drivers/gles3 | |
parent | 6d233c651b21ecaef78fbb20d0365a22919b72b1 (diff) |
Don't compare float to int
Diffstat (limited to 'drivers/gles3')
-rw-r--r-- | drivers/gles3/shaders/canvas.glsl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gles3/shaders/canvas.glsl b/drivers/gles3/shaders/canvas.glsl index 3bcfd24383..df75191b5f 100644 --- a/drivers/gles3/shaders/canvas.glsl +++ b/drivers/gles3/shaders/canvas.glsl @@ -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; |