summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/etc1/rg_etc1.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/etc1/rg_etc1.cpp b/drivers/etc1/rg_etc1.cpp
index 7eb1427d7a..d2959da386 100644
--- a/drivers/etc1/rg_etc1.cpp
+++ b/drivers/etc1/rg_etc1.cpp
@@ -1918,11 +1918,7 @@ done:
int v = etc1_decode_value(diff, inten, selector, packed_c);
uint err = labs(v - static_cast<int>(color));
//printf("err: %d - %u = %u\n",v,color,err);
- #ifdef JAVASCRIPT_ENABLED
- if (err < best_error || best_error == cUINT32_MAX)
- #else
if (err < best_error)
- #endif
{
best_error = err;
best_packed_c = packed_c;