Skip to content

Commit 5a1f9e6

Browse files
committed
Ignore noSSE when SSE support not compiled in.
1 parent d74c679 commit 5a1f9e6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/basis_encode.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -547,9 +547,11 @@ ktxTexture2_CompressBasisEx(ktxTexture2* This, ktxBasisParams* params)
547547
job_pool jpool(threadCount);
548548
cparams.m_pJob_pool = &jpool;
549549

550+
#if BASISU_SUPPORT_SSE
550551
bool prevSSESupport = g_cpu_supports_sse41;
551552
if (params->noSSE)
552553
g_cpu_supports_sse41 = false;
554+
#endif
553555

554556
cparams.m_uastc = params->uastc;
555557
if (params->uastc) {
@@ -741,7 +743,9 @@ ktxTexture2_CompressBasisEx(ktxTexture2* This, ktxBasisParams* params)
741743
// copy the info and images to This texture.
742744
//
743745

746+
#if BASISU_SUPPORT_SSE
744747
g_cpu_supports_sse41 = prevSSESupport;
748+
#endif
745749

746750
const uint8_vec& bf = c.get_output_basis_file();
747751
const basis_file_header& bfh = *reinterpret_cast<const basis_file_header*>(bf.data());

0 commit comments

Comments
 (0)