summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorV.VamsiKrishna <vk@bsb.in>2015-03-20 10:18:13 +0530
committerV.VamsiKrishna <vk@bsb.in>2015-03-20 10:18:13 +0530
commit41b729ccff74e5a9154bee7db0d36ffd74641eae (patch)
tree0398deb424539c5245703408b799e3556dc9c7aa /drivers
parent72895ddecf01e3559014669937df6c0b0adcca5f (diff)
Removing etc1 from build for javascript platform.
Based on inputs from reduz 1) Made etc1 optional driver and default yes. 2) Reverted the hack in rg_etc1.cpp 3) Disabled etc1 for javascript plaform.
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;