From 4a401d9ec90da2fb6b061084d88dcc96627fa03b Mon Sep 17 00:00:00 2001 From: Carl Woffenden Date: Wed, 25 Sep 2019 17:40:59 +0200 Subject: [PATCH] Don't add EAC to the demo if not building with EAC --- contrib/single_file_transcoder/examples/emscripten.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contrib/single_file_transcoder/examples/emscripten.cpp b/contrib/single_file_transcoder/examples/emscripten.cpp index dd20ea2..19eb8c3 100644 --- a/contrib/single_file_transcoder/examples/emscripten.cpp +++ b/contrib/single_file_transcoder/examples/emscripten.cpp @@ -980,6 +980,7 @@ static transcoder_texture_format supports(EMSCRIPTEN_WEBGL_CONTEXT_HANDLE const : cTFBC1; // 2 } #endif +#if BASISD_SUPPORT_ETC2_EAC_A8 || !defined(BASISD_SUPPORT_ETC2_EAC_A8) /* * Then ETC2 (which may be incorrect). */ @@ -989,6 +990,7 @@ static transcoder_texture_format supports(EMSCRIPTEN_WEBGL_CONTEXT_HANDLE const ? cTFETC2 // 1 : cTFETC1; // 0 } +#endif /* * Finally ETC1, falling back on RGBA. *