mirror of
https://github.com/BinomialLLC/basis_universal.git
synced 2026-06-08 00:23:52 +00:00
changing cmake option name in printf, changing BASISU_SUPPORT_OPENCL check so it works if the macro is defined but 0
This commit is contained in:
@@ -6084,10 +6084,10 @@ static int main_internal(int argc, const char** argv)
|
||||
astc_fuzz_flag = true;
|
||||
}
|
||||
|
||||
#ifndef BASISU_SUPPORT_OPENCL
|
||||
#if !BASISU_SUPPORT_OPENCL
|
||||
if (use_opencl)
|
||||
{
|
||||
fprintf(stderr, "WARNING: -opencl specified, but OpenCL support was not enabled at compile time! With cmake, use -D OPENCL=1. Falling back to CPU compression.\n");
|
||||
fprintf(stderr, "WARNING: -opencl specified, but OpenCL support was not defined or enabled at compile time! With cmake, use -D BASISU_OPENCL=1. Falling back to CPU compression.\n");
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user