1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-25 15:37:42 +00:00

basis_universal: Sync with upstream 646a9f826

646a9f8261
This commit is contained in:
Rémi Verschelde
2021-11-19 18:40:08 +01:00
parent c6d2768a19
commit 2c22caccc5
10 changed files with 52 additions and 62 deletions

View File

@@ -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);