Revert "Revert "Removing etc1 from build for javascript platform.""
This reverts commit 9965e93f7e
.
This commit is contained in:
parent
2e59788aa9
commit
eb3c88b3dd
|
@ -111,6 +111,7 @@ opts.Add('jpg','JPG Image loader support (yes/no)','yes')
|
|||
opts.Add('webp','WEBP Image loader support (yes/no)','yes')
|
||||
opts.Add('dds','DDS Texture loader support (yes/no)','yes')
|
||||
opts.Add('pvr','PVR (PowerVR) Texture loader support (yes/no)','yes')
|
||||
opts.Add('etc1','etc1 Texture compression support (yes/no)','yes')
|
||||
opts.Add('builtin_zlib','Use built-in zlib (yes/no)','yes')
|
||||
opts.Add('openssl','Use OpenSSL (yes/no/builtin)','no')
|
||||
opts.Add('musepack','Musepack Audio (yes/no)','yes')
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -36,6 +36,7 @@ def get_flags():
|
|||
('squish', 'no'),
|
||||
('speex', 'no'),
|
||||
('old_scenes', 'no'),
|
||||
('etc1', 'no'),
|
||||
# ('default_gui_theme', 'no'),
|
||||
|
||||
#('builtin_zlib', 'no'),
|
||||
|
|
Loading…
Reference in New Issue