mirror of
https://github.com/BinomialLLC/basis_universal.git
synced 2026-09-10 20:48:31 +00:00
update readme
This commit is contained in:
12
README.md
12
README.md
@@ -45,12 +45,12 @@ On browsers that don't support BC1 (Firefox is one), there's a low-quality fallb
|
||||
|
||||
Note that I was unable to disable assertions when compiling the transcoder in release (-O2), and I'm not sure why yet. Currently, basisu.h forcefully disables the assert() macro, which is ugly but works:
|
||||
|
||||
`#if defined(__EMSCRIPTEN__) && !defined(_DEBUG) && !defined(DEBUG)
|
||||
// HUGE HACK: I've been unable to disable assertions using emcc -O2 -s ASSERTIONS=0, no idea why.
|
||||
// We definitely don't want them enabled in release.
|
||||
#undef assert
|
||||
#define assert(x) ((void)0)
|
||||
#endif`
|
||||
`#if defined(__EMSCRIPTEN__) && !defined(_DEBUG) && !defined(DEBUG)`
|
||||
`// HUGE HACK: I've been unable to disable assertions using emcc -O2 -s ASSERTIONS=0, no idea why. `
|
||||
`// We definitely don't want them enabled in release.`
|
||||
`#undef assert`
|
||||
`#define assert(x) ((void)0)`
|
||||
`#endif`
|
||||
|
||||
### Transcoder details
|
||||
|
||||
|
||||
Reference in New Issue
Block a user