summaryrefslogtreecommitdiffstats
path: root/thirdparty/basis_universal/encoder/basisu_enc.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2021-11-19 18:40:08 +0100
committerRémi Verschelde <rverschelde@gmail.com>2021-11-19 18:40:08 +0100
commit2c22caccc55b2e827e3e3b2e36d308de352114d1 (patch)
treef60137decbe9b053465d62bc06b48b91fe68172a /thirdparty/basis_universal/encoder/basisu_enc.cpp
parentc6d2768a192eedf9a7903e8fd7b3f6ffa771db11 (diff)
downloadredot-engine-2c22caccc55b2e827e3e3b2e36d308de352114d1.tar.gz
basis_universal: Sync with upstream 646a9f826
https://github.com/BinomialLLC/basis_universal/commit/646a9f826131cb0b9e14b5e4740874808315f83a
Diffstat (limited to 'thirdparty/basis_universal/encoder/basisu_enc.cpp')
-rw-r--r--thirdparty/basis_universal/encoder/basisu_enc.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/thirdparty/basis_universal/encoder/basisu_enc.cpp b/thirdparty/basis_universal/encoder/basisu_enc.cpp
index f02fb62c11..daaf65badc 100644
--- a/thirdparty/basis_universal/encoder/basisu_enc.cpp
+++ b/thirdparty/basis_universal/encoder/basisu_enc.cpp
@@ -195,7 +195,7 @@ namespace basisu
{
QueryPerformanceFrequency(reinterpret_cast<LARGE_INTEGER*>(pTicks));
}
-#elif defined(__APPLE__)
+#elif defined(__APPLE__) || defined(__OpenBSD__)
#include <sys/time.h>
inline void query_counter(timer_ticks* pTicks)
{
@@ -1779,8 +1779,6 @@ namespace basisu
return nullptr;
}
- const uint32_t bytes_per_line = hdr.m_width * tga_bytes_per_pixel;
-
const uint8_t *pSrc = pBuf + sizeof(tga_header);
uint32_t bytes_remaining = buf_size - sizeof(tga_header);